X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fchmod.c;h=d4f53c564e14701ea360a7159037c39838266d9f;hb=6e2bb7acf42589fb7130b039d0623e2ca42503dd;hp=beb66e59d0611cfbe08b0bf5aad6888fc9df32ee;hpb=aa398f56fa398f2202b04e82c67f822f3233786f;p=musl diff --git a/src/stat/chmod.c b/src/stat/chmod.c index beb66e59..d4f53c56 100644 --- a/src/stat/chmod.c +++ b/src/stat/chmod.c @@ -1,7 +1,12 @@ #include +#include #include "syscall.h" int chmod(const char *path, mode_t mode) { +#ifdef SYS_chmod return syscall(SYS_chmod, path, mode); +#else + return syscall(SYS_fchmodat, AT_FDCWD, path, mode); +#endif }