diff options
-rw-r--r-- | src/acl/ntapi_acl_helper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/acl/ntapi_acl_helper.c b/src/acl/ntapi_acl_helper.c index c1a8dc8..72444fe 100644 --- a/src/acl/ntapi_acl_helper.c +++ b/src/acl/ntapi_acl_helper.c @@ -66,7 +66,7 @@ void __stdcall __ntapi_acl_init_common_descriptor( /* owner, group, other: default sid's */ owner = owner ? owner : __ntapi_internals()->sid; - group = group ? group : &sid_owner_rights; + group = group ? group : owner; other = other ? other : &sid_auth_users; /* owner sid */ @@ -77,7 +77,7 @@ void __stdcall __ntapi_acl_init_common_descriptor( /* ace's */ ace = (nt_access_allowed_ace *)&sd->buffer; ace = __acl_ace_init(ace,system_access,&sid_system,&ace_count); - ace = __acl_ace_init(ace,owner_access,owner,&ace_count); + ace = __acl_ace_init(ace,owner_access,&sid_owner_rights,&ace_count); ace = __acl_ace_init(ace,group_access,group,&ace_count); ace = __acl_ace_init(ace,other_access,other,&ace_count); @@ -87,5 +87,4 @@ void __stdcall __ntapi_acl_init_common_descriptor( sd->dacl.acl_size = (uint16_t)((char *)ace - (char *)&sd->dacl); sd->dacl.ace_count = ace_count; sd->dacl.sbz_2nd = 0; - } |