projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d3f7c5
)
Fix typo in initdb's SCRAM password processing.
author
Tom Lane
<
[email protected]
>
Sun, 12 Mar 2017 19:57:03 +0000
(15:57 -0400)
committer
Tom Lane
<
[email protected]
>
Sun, 12 Mar 2017 19:57:03 +0000
(15:57 -0400)
Noted by Coverity (a rather impressive catch).
Michael Paquier
src/bin/initdb/initdb.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/initdb/initdb.c
b/src/bin/initdb/initdb.c
index 3f836efc20fcaa458fc13d25e38b8edfc4cebad3..da113bd2635d89fb71f509039208f7c6700da493 100644
(file)
--- a/
src/bin/initdb/initdb.c
+++ b/
src/bin/initdb/initdb.c
@@
-2331,7
+2331,7
@@
check_need_password(const char *authmethodlocal, const char *authmethodhost)
strcmp(authmethodlocal, "scram") == 0) &&
(strcmp(authmethodhost, "md5") == 0 ||
strcmp(authmethodhost, "password") == 0 ||
- strcmp(authmethod
local
, "scram") == 0) &&
+ strcmp(authmethod
host
, "scram") == 0) &&
!(pwprompt || pwfilename))
{
fprintf(stderr, _("%s: must specify a password for the superuser to enable %s authentication\n"), progname,