diff options
Diffstat (limited to 'src/unistd/fchown.c')
-rw-r--r-- | src/unistd/fchown.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unistd/fchown.c b/src/unistd/fchown.c index 36633b0e..03459849 100644 --- a/src/unistd/fchown.c +++ b/src/unistd/fchown.c @@ -13,5 +13,10 @@ int fchown(int fd, uid_t uid, gid_t gid) char buf[15+3*sizeof(int)]; __procfdname(buf, fd); +#ifdef SYS_chown return syscall(SYS_chown, buf, uid, gid); +#else + return syscall(SYS_fchownat, AT_FDCWD, buf, uid, gid); +#endif + } |