mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +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:
parent
644ab10b04
commit
78bdbfbf54
@ -3952,8 +3952,7 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32_t security_info_sent, const struct
|
|||||||
if (set_acl_as_root) {
|
if (set_acl_as_root) {
|
||||||
become_root();
|
become_root();
|
||||||
}
|
}
|
||||||
sret = SMB_VFS_CHMOD(conn, fsp->fsp_name,
|
sret = SMB_VFS_FCHMOD(fsp, posix_perms);
|
||||||
posix_perms);
|
|
||||||
if (set_acl_as_root) {
|
if (set_acl_as_root) {
|
||||||
unbecome_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)));
|
fsp_str_dbg(fsp)));
|
||||||
|
|
||||||
become_root();
|
become_root();
|
||||||
sret = SMB_VFS_CHMOD(conn,
|
sret = SMB_VFS_FCHMOD(fsp, posix_perms);
|
||||||
fsp->fsp_name,
|
|
||||||
posix_perms);
|
|
||||||
unbecome_root();
|
unbecome_root();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user