mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3: smbd: Fruit. Make the use of dom_sid_compare_domain() much clearer.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13319 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
9312a1cdaf
commit
5c909ea453
@ -2965,9 +2965,10 @@ static NTSTATUS remove_virtual_nfs_aces(struct security_descriptor *psd)
|
||||
|
||||
for (i = 0; i < psd->dacl->num_aces; i++) {
|
||||
/* MS NFS style mode/uid/gid */
|
||||
if (!dom_sid_compare_domain(
|
||||
int cmp = dom_sid_compare_domain(
|
||||
&global_sid_Unix_NFS,
|
||||
&psd->dacl->aces[i].trustee) == 0) {
|
||||
&psd->dacl->aces[i].trustee);
|
||||
if (cmp != 0) {
|
||||
/* Normal ACE entry. */
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user