mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Fixed chown/chgrp setting from smbcacls.
Jeremy.
This commit is contained in:
parent
12f88c9ba7
commit
43ca0d991c
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user