diff options
author | Jeremy Allison <jra@samba.org> | 2008-01-24 18:22:41 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-01-24 18:22:41 -0800 |
commit | 485cedadb0e61775e6cb152f42f4dfdf17e82666 (patch) | |
tree | 5378ec678c0c594dbb684309b121a5277b73f453 | |
parent | fc0508922417e9ef9a4450067d29d15121b52902 (diff) | |
download | samba-485cedadb0e61775e6cb152f42f4dfdf17e82666.tar.gz |
Fix the same bug with user -> user_obj.
Jeremy.
-rw-r--r-- | source/smbd/posix_acls.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/smbd/posix_acls.c b/source/smbd/posix_acls.c index 21ad4222a15..f40a344124e 100644 --- a/source/smbd/posix_acls.c +++ b/source/smbd/posix_acls.c @@ -1402,7 +1402,13 @@ static BOOL create_canon_ace_lists(files_struct *fsp, SMB_STRUCT_STAT *pst, } else if (sid_to_uid( ¤t_ace->trustee, ¤t_ace->unix_ug.uid)) { current_ace->owner_type = UID_ACE; - current_ace->type = SMB_ACL_USER; + /* If it's the owning user, this is a user_obj, not + * a user. */ + if (current_ace->unix_ug.uid == pst->st_uid) { + current_ace->type = SMB_ACL_USER_OBJ; + } else { + current_ace->type = SMB_ACL_USER; + } } else if (sid_to_gid( ¤t_ace->trustee, ¤t_ace->unix_ug.gid)) { current_ace->owner_type = GID_ACE; /* If it's the primary group, this is a group_obj, not |