mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
don't set the owner and group sid offset is there are no owner or group
owner. J.F. (This used to be commit 68e9211f5df0480cb88d7d21140c4954da47e7ae)
This commit is contained in:
parent
e62aa7555b
commit
07bb869958
@ -674,12 +674,13 @@ SEC_DESC *make_sec_desc(TALLOC_CTX *ctx, uint16 revision,
|
||||
|
||||
*sd_size = (size_t)((offset == 0) ? SEC_DESC_HEADER_SIZE : offset);
|
||||
|
||||
dst->off_owner_sid = offset_sid;
|
||||
|
||||
if (dst->owner_sid != NULL)
|
||||
if (dst->owner_sid != NULL) {
|
||||
dst->off_owner_sid = offset_sid;
|
||||
dst->off_grp_sid = offset_sid + sid_size(dst->owner_sid);
|
||||
}
|
||||
else
|
||||
dst->off_grp_sid = offset_sid;
|
||||
if (dst->grp_sid != NULL)
|
||||
dst->off_grp_sid = offset_sid;
|
||||
|
||||
return dst;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user