aboutsummaryrefslogtreecommitdiff
path: root/src/common/exec.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2016-04-06 23:40:51 -0400
committerNoah Misch <noah@leadboat.com>2016-04-06 23:40:51 -0400
commit33d3fc5e2aac32fcf356c09cee4bfded6613a1f3 (patch)
treed7fb38d70febb8e992666d2a702afcb0fbfcbea4 /src/common/exec.c
parent29dd1504a12f324c75f6b5ce8863505e499633ec (diff)
downloadpostgresql-33d3fc5e2aac32fcf356c09cee4bfded6613a1f3.tar.gz
postgresql-33d3fc5e2aac32fcf356c09cee4bfded6613a1f3.zip
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.
Diffstat (limited to 'src/common/exec.c')
-rw-r--r--src/common/exec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common/exec.c b/src/common/exec.c
index ec8c6556365..d736b02280d 100644
--- a/src/common/exec.c
+++ b/src/common/exec.c
@@ -674,10 +674,7 @@ AddUserToTokenDacl(HANDLE hToken)
/* Get the current user SID */
if (!GetTokenUser(hToken, &pTokenUser))
- {
- log_error("could not get token user: error code %lu", GetLastError());
- goto cleanup;
- }
+ goto cleanup; /* callee printed a message */
/* Figure out the size of the new ACL */
dwNewAclSize = asi.AclBytesInUse + sizeof(ACCESS_ALLOWED_ACE) +