mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
Refer to a TOKEN_USER payload as a "token user," not as a "user token".
This corrects messages for can't-happen errors. The corresponding "user token" appears in the HANDLE argument of GetTokenInformation().
This commit is contained in:
@@ -672,13 +672,10 @@ AddUserToTokenDacl(HANDLE hToken)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the user token for the current user, which provides us with the SID
|
||||
* that is needed for creating the ACL.
|
||||
*/
|
||||
/* Get the current user SID */
|
||||
if (!GetTokenUser(hToken, &pTokenUser))
|
||||
{
|
||||
log_error("could not get user token: error code %lu", GetLastError());
|
||||
log_error("could not get token user: error code %lu", GetLastError());
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user