X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=inline;f=src%2Fstat%2Ffchmod.c;h=93e1b64c57f9046b5446292360f1564611307db7;hb=9d4c902c42b3fda368d7ea64bb9575c46228fa7f;hp=6d2814162ebc296d99d100afcccaf64f74ea080c;hpb=65ea604c74f3fecbc61a266a22fdf527764995b6;p=musl diff --git a/src/stat/fchmod.c b/src/stat/fchmod.c index 6d281416..93e1b64c 100644 --- a/src/stat/fchmod.c +++ b/src/stat/fchmod.c @@ -13,5 +13,9 @@ int fchmod(int fd, mode_t mode) char buf[15+3*sizeof(int)]; __procfdname(buf, fd); +#ifdef SYS_chmod return syscall(SYS_chmod, buf, mode); +#else + return syscall(SYS_fchmodat, AT_FDCWD, buf, mode); +#endif }