summaryrefslogtreecommitdiffhomepage
path: root/src/acl
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-03-27 01:53:14 +0000
committermidipix <writeonce@midipix.org>2018-03-29 21:56:28 -0400
commit0a84879cdc3be1bbe3e09dd9fd883a4832e9443e (patch)
tree890b50007ab3c483666d922c6edad95d17c619b5 /src/acl
parent227c1560530dc822180e71690795d4a97d2d7310 (diff)
downloadntapi-0a84879cdc3be1bbe3e09dd9fd883a4832e9443e.tar.bz2
ntapi-0a84879cdc3be1bbe3e09dd9fd883a4832e9443e.tar.xz
internals: when running as a local/domain user, cache the domain's admin sid.
Diffstat (limited to 'src/acl')
-rw-r--r--src/acl/ntapi_acl_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acl/ntapi_acl_helper.c b/src/acl/ntapi_acl_helper.c
index 72444fe..c495dc5 100644
--- a/src/acl/ntapi_acl_helper.c
+++ b/src/acl/ntapi_acl_helper.c
@@ -65,7 +65,7 @@ void __stdcall __ntapi_acl_init_common_descriptor(
sd->sd.offset_sacl = 0;
/* owner, group, other: default sid's */
- owner = owner ? owner : __ntapi_internals()->sid;
+ owner = owner ? owner : __ntapi_internals()->user;
group = group ? group : owner;
other = other ? other : &sid_auth_users;