mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r50: Fix bug 1139 as per fix suggested by jdev@panix.com,
swap lookups for user and group - group will do an algorithmic lookup if it fails, user won't. Jeremy.
This commit is contained in:
parent
26d8791dde
commit
a205c56a75
@ -1363,12 +1363,12 @@ static BOOL create_canon_ace_lists(files_struct *fsp, SMB_STRUCT_STAT *pst,
|
||||
if (nt4_compatible_acls())
|
||||
psa->flags |= SEC_ACE_FLAG_INHERIT_ONLY;
|
||||
|
||||
} else if (NT_STATUS_IS_OK(sid_to_gid( ¤t_ace->trustee, ¤t_ace->unix_ug.gid))) {
|
||||
current_ace->owner_type = GID_ACE;
|
||||
current_ace->type = SMB_ACL_GROUP;
|
||||
} else if (NT_STATUS_IS_OK(sid_to_uid( ¤t_ace->trustee, ¤t_ace->unix_ug.uid))) {
|
||||
current_ace->owner_type = UID_ACE;
|
||||
current_ace->type = SMB_ACL_USER;
|
||||
} else if (NT_STATUS_IS_OK(sid_to_gid( ¤t_ace->trustee, ¤t_ace->unix_ug.gid))) {
|
||||
current_ace->owner_type = GID_ACE;
|
||||
current_ace->type = SMB_ACL_GROUP;
|
||||
} else {
|
||||
fstring str;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user