From: Jeremy Allison Date: Thu, 17 May 2018 18:05:20 +0000 (-0700) Subject: s3: modules: vfs_default: Remove CHMOD_ACL in chmod. X-Git-Tag: ldb-1.4.0~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5060e1ad5fedb26f66bb9da479d46a4b576b9bc;p=thirdparty%2Fsamba.git s3: modules: vfs_default: Remove CHMOD_ACL in chmod. Now I understand the use of the mask in POSIX ACLs this extra step is no longer needed. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 956cebfd592..a2bc7c0e9f9 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -1983,27 +1983,6 @@ static int vfswrap_chmod(vfs_handle_struct *handle, int result; START_PROFILE(syscall_chmod); - - /* - * We need to do this due to the fact that the default POSIX ACL - * chmod modifies the ACL *mask* for the group owner, not the - * group owner bits directly. JRA. - */ - - - { - int saved_errno = errno; /* We might get ENOSYS */ - result = SMB_VFS_CHMOD_ACL(handle->conn, - smb_fname, - mode); - if (result == 0) { - END_PROFILE(syscall_chmod); - return result; - } - /* Error - return the old errno. */ - errno = saved_errno; - } - result = chmod(smb_fname->base_name, mode); END_PROFILE(syscall_chmod); return result;