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.
pull/12/head
Noah Misch 10 years ago
parent 29dd1504a1
commit 33d3fc5e2a
  1. 5
      src/common/exec.c

@ -674,10 +674,7 @@ AddUserToTokenDacl(HANDLE hToken)
/* Get the current user SID */ /* Get the current user SID */
if (!GetTokenUser(hToken, &pTokenUser)) if (!GetTokenUser(hToken, &pTokenUser))
{ goto cleanup; /* callee printed a message */
log_error("could not get token user: error code %lu", GetLastError());
goto cleanup;
}
/* Figure out the size of the new ACL */ /* Figure out the size of the new ACL */
dwNewAclSize = asi.AclBytesInUse + sizeof(ACCESS_ALLOWED_ACE) + dwNewAclSize = asi.AclBytesInUse + sizeof(ACCESS_ALLOWED_ACE) +

Loading…
Cancel
Save