mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3/modules: nfs4acl_xattr_fset_nt_acl VFS_SMB_NEXT_CHMOD => VFS_SMB_NEXT_FCHMOD
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
34949219ed
commit
cb571d2b47
@ -421,15 +421,9 @@ static NTSTATUS nfs4acl_xattr_fset_nt_acl(vfs_handle_struct *handle,
|
||||
|
||||
restored_mode = existing_mode | expected_mode;
|
||||
|
||||
if (fsp_get_io_fd(fsp) != -1) {
|
||||
ret = SMB_VFS_NEXT_FCHMOD(handle,
|
||||
fsp,
|
||||
restored_mode);
|
||||
} else {
|
||||
ret = SMB_VFS_NEXT_CHMOD(handle,
|
||||
fsp->fsp_name,
|
||||
restored_mode);
|
||||
}
|
||||
if (ret != 0) {
|
||||
DBG_ERR("Resetting POSIX mode on [%s] from [0%o]: %s\n",
|
||||
fsp_str_dbg(fsp), existing_mode,
|
||||
|
Loading…
Reference in New Issue
Block a user