From: Ralph Boehme Date: Fri, 9 Apr 2021 12:55:06 +0000 (+0200) Subject: vfs_default: require fchmod() X-Git-Tag: tevent-0.11.0~1228 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f923d1f474fa1d9a19c8fd2904d50f411803bc05;p=thirdparty%2Fsamba.git vfs_default: require fchmod() This has been part of POSIX for long enough in 2021. Signed-off-by: Ralph Boehme --- diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 58891a2c1c3..a5516cbca7d 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -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;