Content-Length: 262072 | pFad | http://github.com/postgrespro/postgres_cluster/commit/33d3fc5e2aac32fcf356c09cee4bfded6613a1f3

B0 Remove redundant message in AddUserToTokenDacl(). · postgrespro/postgres_cluster@33d3fc5 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/33d3fc5e2aac32fcf356c09cee4bfded6613a1f3

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy