diff options
author | Jeremy Allison <jra@samba.org> | 2004-04-05 14:27:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:06 -0500 |
commit | a205c56a75c93c82796fd68687e8c0db26459073 (patch) | |
tree | 3a4275e743d165f747cdf5693059809eda0e11c6 | |
parent | 26d8791ddedb7964c219067480cf4a7d61877765 (diff) | |
download | samba-a205c56a75c93c82796fd68687e8c0db26459073.tar.gz samba-a205c56a75c93c82796fd68687e8c0db26459073.tar.xz samba-a205c56a75c93c82796fd68687e8c0db26459073.zip |
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.
-rw-r--r-- | source/smbd/posix_acls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/posix_acls.c b/source/smbd/posix_acls.c index 620e123e14d..25e8fd802bd 100644 --- a/source/smbd/posix_acls.c +++ b/source/smbd/posix_acls.c @@ -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; |