mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 00:02:04 -04:00
Since a missing pg_pwd file is a valid situation, don't print an error
message in that case.
This commit is contained in:
parent
6a7f23c213
commit
f1423cd9fc
@ -9,7 +9,7 @@
|
|||||||
* Dec 17, 1997 - Todd A. Brandys
|
* Dec 17, 1997 - Todd A. Brandys
|
||||||
* Orignal Version Completed.
|
* Orignal Version Completed.
|
||||||
*
|
*
|
||||||
* $Id: crypt.c,v 1.31 2001/03/22 03:59:30 momjian Exp $
|
* $Id: crypt.c,v 1.32 2001/06/23 23:26:17 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -78,11 +78,10 @@ crypt_openpwdfile(void)
|
|||||||
FILE *pwdfile;
|
FILE *pwdfile;
|
||||||
|
|
||||||
filename = crypt_getpwdfilename();
|
filename = crypt_getpwdfilename();
|
||||||
pwdfile = AllocateFile(filename, PG_BINARY_R);
|
pwdfile = AllocateFile(filename, "r");
|
||||||
|
|
||||||
if (pwdfile == NULL)
|
if (pwdfile == NULL && errno != ENOENT)
|
||||||
fprintf(stderr, "Couldn't read %s: %s\n",
|
elog(DEBUG, "could not open %s: %s", filename, strerror(errno));
|
||||||
filename, strerror(errno));
|
|
||||||
|
|
||||||
pfree(filename);
|
pfree(filename);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user