1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-14 20:23:54 +03:00

don't set the owner and group sid offset is there are no owner or group

owner.

	J.F.
This commit is contained in:
Jean-François Micouleau
-
parent a7768b9b6f
commit 68e9211f5d

View File

@@ -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;