1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3: smbd: Posix ACLs. Now we know we have a handle, always use VFS_FCHMOD instead of VFS_CHMOD.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Jeremy Allison 2019-06-20 11:43:17 -07:00
parent 644ab10b04
commit 78bdbfbf54

View File

@ -3952,8 +3952,7 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32_t security_info_sent, const struct
if (set_acl_as_root) {
become_root();
}
sret = SMB_VFS_CHMOD(conn, fsp->fsp_name,
posix_perms);
sret = SMB_VFS_FCHMOD(fsp, posix_perms);
if (set_acl_as_root) {
unbecome_root();
}
@ -3966,9 +3965,7 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32_t security_info_sent, const struct
fsp_str_dbg(fsp)));
become_root();
sret = SMB_VFS_CHMOD(conn,
fsp->fsp_name,
posix_perms);
sret = SMB_VFS_FCHMOD(fsp, posix_perms);
unbecome_root();
}