diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2001-06-23 23:26:17 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2001-06-23 23:26:17 +0000 |
commit | f1423cd9fce967df6c3ddd3059c1d1707e0e9086 (patch) | |
tree | 10ab7f0ede1043b4b386201eabe7ae45e1730ba6 /src | |
parent | 6a7f23c2138d67a3311873ff58c14ad4224310bb (diff) |
Since a missing pg_pwd file is a valid situation, don't print an error
message in that case.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/libpq/crypt.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/libpq/crypt.c b/src/backend/libpq/crypt.c index 59aef0d514d..e89963f9f65 100644 --- a/src/backend/libpq/crypt.c +++ b/src/backend/libpq/crypt.c @@ -9,7 +9,7 @@ * Dec 17, 1997 - Todd A. Brandys * 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; filename = crypt_getpwdfilename(); - pwdfile = AllocateFile(filename, PG_BINARY_R); + pwdfile = AllocateFile(filename, "r"); - if (pwdfile == NULL) - fprintf(stderr, "Couldn't read %s: %s\n", - filename, strerror(errno)); + if (pwdfile == NULL && errno != ENOENT) + elog(DEBUG, "could not open %s: %s", filename, strerror(errno)); pfree(filename); |