1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3: modules: vfs_ceph: Remove CHMOD_ACL in cephwrap_chmod().

Now I understand the use of the mask in POSIX ACLs
this extra step is no longer needed.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Jeremy Allison 2018-05-17 11:19:33 -07:00
parent d50bb46038
commit b8477abbde

View File

@ -946,26 +946,6 @@ static int cephwrap_chmod(struct vfs_handle_struct *handle,
int result;
DBG_DEBUG("[CEPH] chmod(%p, %s, %d)\n", handle, smb_fname->base_name, mode);
/*
* 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) {
return result;
}
/* Error - return the old errno. */
errno = saved_errno;
}
result = ceph_chmod(handle->data, smb_fname->base_name, mode);
DBG_DEBUG("[CEPH] chmod(...) = %d\n", result);
WRAP_RETURN(result);