Răsfoiți Sursa

remove flag argument from fchmodat syscall

linux's does not have the flag argument for fchmodat syscall.
Gaël PORTAY 1 an în urmă
părinte
comite
fb9d976cc2
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/stat/fchmodat.c

+ 1 - 1
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);