Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit33d3fc5

Browse files
committed
Remove redundant message in AddUserToTokenDacl().
GetTokenUser() will have reported an adequate error message. Theseerror conditions almost can't happen, so users are unlikely to observethis change.Reviewed by Tom Lane and Stephen Frost.
1 parent29dd150 commit33d3fc5

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-
gotocleanup;
680-
}
677+
gotocleanup;/* 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)

[8]ページ先頭

©2009-2025 Movatter.jp