mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 09:37:34 -05:00
Pass the right number of entries to SetEntriesInAcl!
[originally from svn r10093]
This commit is contained in:
@ -144,7 +144,7 @@ int make_private_security_descriptor(DWORD permissions,
|
|||||||
ea[2].Trustee.TrusteeForm = TRUSTEE_IS_SID;
|
ea[2].Trustee.TrusteeForm = TRUSTEE_IS_SID;
|
||||||
ea[2].Trustee.ptstrName = (LPTSTR)*networksid;
|
ea[2].Trustee.ptstrName = (LPTSTR)*networksid;
|
||||||
|
|
||||||
if (p_SetEntriesInAclA(2, ea, NULL, acl) != ERROR_SUCCESS || *acl == NULL) {
|
if (p_SetEntriesInAclA(3, ea, NULL, acl) != ERROR_SUCCESS || *acl == NULL) {
|
||||||
*error = dupprintf("unable to construct ACL: %s",
|
*error = dupprintf("unable to construct ACL: %s",
|
||||||
win_strerror(GetLastError()));
|
win_strerror(GetLastError()));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Reference in New Issue
Block a user