aboutsummaryrefslogtreecommitdiff
path: root/src/stat
diff options
context:
space:
mode:
authorGaƫl PORTAY <gael.portay@rtone.fr>2024-02-18 03:26:48 +0100
committerRich Felker <dalias@aerifal.cx>2024-02-22 19:24:06 -0500
commitfb9d976cc2ae510d2c3c763ed7db9bdb5269e38d (patch)
tree92b2b81735576e43e59484d6a9cdef521b2c2564 /src/stat
parentdd690c490951443ce5b96594c9c44cb6177daac1 (diff)
downloadmusl-fb9d976cc2ae510d2c3c763ed7db9bdb5269e38d.zip
musl-fb9d976cc2ae510d2c3c763ed7db9bdb5269e38d.tar.gz
musl-fb9d976cc2ae510d2c3c763ed7db9bdb5269e38d.tar.bz2
remove flag argument from fchmodat syscall
linux's does not have the flag argument for fchmodat syscall.
Diffstat (limited to 'src/stat')
-rw-r--r--src/stat/fchmodat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat/fchmodat.c b/src/stat/fchmodat.c
index bc58105..41db0c4 100644
--- a/src/stat/fchmodat.c
+++ b/src/stat/fchmodat.c
@@ -5,7 +5,7 @@
int fchmodat(int fd, const char *path, mode_t mode, int flag)
{
- if (!flag) return syscall(SYS_fchmodat, fd, path, mode, flag);
+ if (!flag) return syscall(SYS_fchmodat, fd, path, mode);
if (flag != AT_SYMLINK_NOFOLLOW)
return __syscall_ret(-EINVAL);