mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix typo in initdb's SCRAM password processing.
Noted by Coverity (a rather impressive catch). Michael Paquier
This commit is contained in:
@ -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(authmethodlocal, "scram") == 0) &&
|
||||
strcmp(authmethodhost, "scram") == 0) &&
|
||||
!(pwprompt || pwfilename))
|
||||
{
|
||||
fprintf(stderr, _("%s: must specify a password for the superuser to enable %s authentication\n"), progname,
|
||||
|
Reference in New Issue
Block a user