Skip to content

Commit 33d3fc5

Browse files
committed
Remove redundant message in AddUserToTokenDacl().
GetTokenUser() will have reported an adequate error message. These error conditions almost can't happen, so users are unlikely to observe this change. Reviewed by Tom Lane and Stephen Frost.
1 parent 29dd150 commit 33d3fc5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/common/exec.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,7 @@ AddUserToTokenDacl(HANDLE hToken)
674674

675675
/* Get the current user SID */
676676
if (!GetTokenUser(hToken, &pTokenUser))
677-
{
678-
log_error("could not get token user: error code %lu", GetLastError());
679-
goto cleanup;
680-
}
677+
goto cleanup; /* callee printed a message */
681678

682679
/* Figure out the size of the new ACL */
683680
dwNewAclSize = asi.AclBytesInUse + sizeof(ACCESS_ALLOWED_ACE) +

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy