From edb2e5c14279dde1ceb6d51ddfe3efc380be40ec Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sat, 25 Jul 2020 19:53:37 +0200 Subject: [PATCH] mescc: Mes C Library: Prepare for M2-Planet: chmod. * lib/linux/chmod.c (chmod): Prepare for M2-Planet. --- lib/linux/chmod.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/linux/chmod.c b/lib/linux/chmod.c index 235b3456..54509b53 100644 --- a/lib/linux/chmod.c +++ b/lib/linux/chmod.c @@ -25,5 +25,7 @@ int chmod (char const *file_name, mode_t mask) { - return _sys_call2 (SYS_chmod, (long) file_name, (long) mask); + long long_file_name = file_name; + long long_mask = mask; + return _sys_call2 (SYS_chmod, long_file_name, long_mask); }