Commit 365205dd authored by Tom Lane's avatar Tom Lane

Fix broken initdb -W option, per Michael Fuhr.

parent 7762619e
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD. * Portions taken from FreeBSD.
* *
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.87 2005/06/28 05:09:03 tgl Exp $ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.88 2005/06/28 15:38:12 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1440,7 +1440,7 @@ get_set_pwd(void) ...@@ -1440,7 +1440,7 @@ get_set_pwd(void)
check_ok(); check_ok();
snprintf(pwdpath, sizeof(pwdpath), "%s/global/pg_pwd", pg_data); snprintf(pwdpath, sizeof(pwdpath), "%s/global/pg_auth", pg_data);
if (stat(pwdpath, &statbuf) != 0 || !S_ISREG(statbuf.st_mode)) if (stat(pwdpath, &statbuf) != 0 || !S_ISREG(statbuf.st_mode))
{ {
fprintf(stderr, fprintf(stderr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment