diff options
| author | Pavel Filipenský <pfilipensky@samba.org> | 2024-11-13 09:49:47 +0100 |
|---|---|---|
| committer | Pavel Filipensky <pfilipensky@samba.org> | 2024-11-13 15:47:40 +0000 |
| commit | 50f3273e8283c9dabeca3c899b90ad831657b12a (patch) | |
| tree | afd75c95b883a18c7f6e1ca581cb5c6482069355 /examples/winexe/winexesvc.c | |
| parent | c7839facdbcf551d50179340ead4418f4d7384d3 (diff) | |
| download | samba-50f3273e8283c9dabeca3c899b90ad831657b12a.tar.gz samba-50f3273e8283c9dabeca3c899b90ad831657b12a.tar.bz2 samba-50f3273e8283c9dabeca3c899b90ad831657b12a.zip | |
examples:winexe: Initialize Trustee.ptstrName at the right time
This is a regression of a39cb60 examples:winexe: Fully initialize EXPLICIT_ACCESS
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15752
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Wed Nov 13 15:47:40 UTC 2024 on atb-devel-224
Diffstat (limited to 'examples/winexe/winexesvc.c')
| -rw-r--r-- | examples/winexe/winexesvc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/winexe/winexesvc.c b/examples/winexe/winexesvc.c index f993c9a9c69..ca270a80444 100644 --- a/examples/winexe/winexesvc.c +++ b/examples/winexe/winexesvc.c @@ -68,7 +68,6 @@ static int CreatePipesSA() .Trustee = { .TrusteeForm = TRUSTEE_IS_SID, .TrusteeType = TRUSTEE_IS_GROUP, - .ptstrName = (LPTSTR)pAdminSID, }, }; SID_IDENTIFIER_AUTHORITY SIDAuthNT = {SECURITY_NT_AUTHORITY}; @@ -86,6 +85,8 @@ static int CreatePipesSA() return 0; } + ea.Trustee.ptstrName = (LPTSTR)pAdminSID; + /* Create a new ACL that contains the new ACEs */ dwRes = SetEntriesInAcl(1, &ea, NULL, &pACL); if (ERROR_SUCCESS != dwRes) { |
