summaryrefslogtreecommitdiff
path: root/src/port/win32security.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2016-04-06 23:41:43 -0400
committerNoah Misch <noah@leadboat.com>2016-04-06 23:41:43 -0400
commitf2b1b3079ce9d2965f6e450585f24d18cdf5647b (patch)
tree7db788c4736fad71d68c79565f578679c50e5be8 /src/port/win32security.c
parent33d3fc5e2aac32fcf356c09cee4bfded6613a1f3 (diff)
Standardize GetTokenInformation() error reporting.
Commit c22650cd6450854e1a75064b698d7dcbb4a8821a sparked a discussion about diverse interpretations of "token user" in error messages. Expel old and new specimens of that phrase by making all GetTokenInformation() callers report errors the way GetTokenUser() has been reporting them. 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/port/win32security.c')
-rw-r--r--src/port/win32security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/win32security.c b/src/port/win32security.c
index d3eba9a20b5..ab9cd67748d 100644
--- a/src/port/win32security.c
+++ b/src/port/win32security.c
@@ -248,14 +248,14 @@ pgwin32_get_dynamic_tokeninfo(HANDLE token, TOKEN_INFORMATION_CLASS class,
if (GetTokenInformation(token, class, NULL, 0, &InfoBufferSize))
{
snprintf(errbuf, errsize,
- "could not get token information: got zero size\n");
+ "could not get token information buffer size: got zero size\n");
return FALSE;
}
if (GetLastError() != ERROR_INSUFFICIENT_BUFFER)
{
snprintf(errbuf, errsize,
- "could not get token information: error code %lu\n",
+ "could not get token information buffer size: error code %lu\n",
GetLastError());
return FALSE;
}