From 74ecb467073fed08635929c82c0a9e9d70428433 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Wed, 7 Apr 2021 16:02:15 +0100 Subject: [PATCH] s3/modules: make chmod_acl_module_common less strict so fchmod can run Signed-off-by: Noel Power Reviewed-by: Ralph Boehme --- source3/modules/vfs_acl_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index db6f40d3adf..f5933e68ae1 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -1374,7 +1374,8 @@ int chmod_acl_module_common(struct vfs_handle_struct *handle, int fchmod_acl_module_common(struct vfs_handle_struct *handle, struct files_struct *fsp, mode_t mode) { - if (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN) { + if (fsp->posix_flags & FSP_POSIX_FLAGS_PATHNAMES + || fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH) { /* Only allow this on POSIX opens. */ return SMB_VFS_NEXT_FCHMOD(handle, fsp, mode); } -- 2.34.1