Commit 3f4c2670 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

server: Owner and group SIDs in security descriptors are optional in many server calls.

So print "<not present>" when they aren't provided instead of "<invalid sid>".
parent 2cecc630
......@@ -711,12 +711,18 @@ static void dump_inline_security_descriptor( const struct security_descriptor *s
fprintf( stderr, ",owner=" );
if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
return;
dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
if (sd->owner_len)
dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
else
fprintf( stderr, "<not present>" );
offset += sd->owner_len;
fprintf( stderr, ",group=" );
if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
return;
dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
if (sd->group_len)
dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
else
fprintf( stderr, "<not present>" );
offset += sd->group_len;
fprintf( stderr, ",sacl=" );
if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment