diff options
author | Jeremy Allison <jra@samba.org> | 2000-12-16 00:34:58 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-12-16 00:34:58 +0000 |
commit | 8372087800c27115e4d211dcd58f2ef87b4ab5a3 (patch) | |
tree | b045f0c4114c1a1ca72ee21d1f5c892c2ede1ce2 /source3/smbd | |
parent | 8325948287bde09dd2ad1039f3008a42930809dd (diff) | |
download | samba-8372087800c27115e4d211dcd58f2ef87b4ab5a3.tar.gz samba-8372087800c27115e4d211dcd58f2ef87b4ab5a3.tar.bz2 samba-8372087800c27115e4d211dcd58f2ef87b4ab5a3.zip |
Fixed chown/chgrp setting from smbcacls.
Jeremy.
(This used to be commit 43ca0d991cc6489be16722a7ea89e01a42f2ca2f)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/posix_acls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 6636279024..4c274ae161 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -170,6 +170,7 @@ static BOOL unpack_nt_permissions(SMB_STRUCT_STAT *psbuf, uid_t *puser, gid_t *p */ if (security_info_sent & OWNER_SECURITY_INFORMATION) { + sid_copy(&owner_sid, psd->owner_sid) if (!sid_to_uid( &owner_sid, puser, &sid_type)) DEBUG(3,("unpack_nt_permissions: unable to validate owner sid.\n")); } @@ -180,6 +181,7 @@ static BOOL unpack_nt_permissions(SMB_STRUCT_STAT *psbuf, uid_t *puser, gid_t *p */ if (security_info_sent & GROUP_SECURITY_INFORMATION) { + sid_copy(&grp, psd->grp_sid) if (!sid_to_gid( &grp_sid, pgrp, &sid_type)) DEBUG(3,("unpack_nt_permissions: unable to validate group sid.\n")); } |