mirror of
https://github.com/samba-team/samba.git
synced 2025-01-18 06:04:06 +03:00
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
This commit is contained in:
parent
c7839facdb
commit
50f3273e82
@ -68,7 +68,6 @@ static int CreatePipesSA()
|
|||||||
.Trustee = {
|
.Trustee = {
|
||||||
.TrusteeForm = TRUSTEE_IS_SID,
|
.TrusteeForm = TRUSTEE_IS_SID,
|
||||||
.TrusteeType = TRUSTEE_IS_GROUP,
|
.TrusteeType = TRUSTEE_IS_GROUP,
|
||||||
.ptstrName = (LPTSTR)pAdminSID,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
SID_IDENTIFIER_AUTHORITY SIDAuthNT = {SECURITY_NT_AUTHORITY};
|
SID_IDENTIFIER_AUTHORITY SIDAuthNT = {SECURITY_NT_AUTHORITY};
|
||||||
@ -86,6 +85,8 @@ static int CreatePipesSA()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ea.Trustee.ptstrName = (LPTSTR)pAdminSID;
|
||||||
|
|
||||||
/* Create a new ACL that contains the new ACEs */
|
/* Create a new ACL that contains the new ACEs */
|
||||||
dwRes = SetEntriesInAcl(1, &ea, NULL, &pACL);
|
dwRes = SetEntriesInAcl(1, &ea, NULL, &pACL);
|
||||||
if (ERROR_SUCCESS != dwRes) {
|
if (ERROR_SUCCESS != dwRes) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user