mirror of
https://github.com/samba-team/samba.git
synced 2025-11-23 20:23:50 +03:00
r21885: Chown logic should be activated only if nfs4:chown=yes
(This used to be commit b10410634f)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
52d5e2a935
commit
679a313517
@@ -604,6 +604,7 @@ BOOL smb_set_nt_acl_nfs4(files_struct *fsp,
|
||||
if (smbacl4_GetFileOwner(fsp, &sbuf))
|
||||
return False;
|
||||
|
||||
if (params.do_chown) {
|
||||
/* chown logic is a copy/paste from posix_acl.c:set_nt_acl */
|
||||
if (!unpack_nt_owners(SNUM(fsp->conn), &newUID, &newGID, security_info_sent, psd))
|
||||
{
|
||||
@@ -631,6 +632,7 @@ BOOL smb_set_nt_acl_nfs4(files_struct *fsp,
|
||||
sbuf.st_gid = newGID; /* GROUP@ in case of e_special */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((security_info_sent & DACL_SECURITY_INFORMATION)!=0 && psd->dacl!=NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user