From f923d1f474fa1d9a19c8fd2904d50f411803bc05 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 9 Apr 2021 14:55:06 +0200 Subject: [PATCH] vfs_default: require fchmod() This has been part of POSIX for long enough in 2021. Signed-off-by: Ralph Boehme --- source3/modules/vfs_default.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; -- 2.47.3