vfs_default: require fchmod()
authorRalph Boehme <slow@samba.org>
Fri, 9 Apr 2021 12:55:06 +0000 (14:55 +0200)
committerNoel Power <npower@samba.org>
Sun, 11 Apr 2021 22:27:34 +0000 (22:27 +0000)
This has been part of POSIX for long enough in 2021.

Signed-off-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_default.c

index 58891a2c1c316040c9fe81d8d02dc38deef8ebec..a5516cbca7d1145fd2f3ddffae9f7afdeeed032d 100644 (file)
@@ -2425,12 +2425,8 @@ static int vfswrap_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t m
        int result;
 
        START_PROFILE(syscall_fchmod);
-#if defined(HAVE_FCHMOD)
+
        result = fchmod(fsp_get_io_fd(fsp), mode);
-#else
-       result = -1;
-       errno = ENOSYS;
-#endif
 
        END_PROFILE(syscall_fchmod);
        return result;