File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 9
9
* Dec 17, 1997 - Todd A. Brandys
10
10
* Orignal Version Completed.
11
11
*
12
- * $Id: crypt.c,v 1.31 2001/03/22 03:59:30 momjian Exp $
12
+ * $Id: crypt.c,v 1.32 2001/06/23 23:26:17 petere Exp $
13
13
*
14
14
*-------------------------------------------------------------------------
15
15
*/
@@ -78,11 +78,10 @@ crypt_openpwdfile(void)
78
78
FILE * pwdfile ;
79
79
80
80
filename = crypt_getpwdfilename ();
81
- pwdfile = AllocateFile (filename , PG_BINARY_R );
81
+ pwdfile = AllocateFile (filename , "r" );
82
82
83
- if (pwdfile == NULL )
84
- fprintf (stderr , "Couldn't read %s: %s\n" ,
85
- filename , strerror (errno ));
83
+ if (pwdfile == NULL && errno != ENOENT )
84
+ elog (DEBUG , "could not open %s: %s" , filename , strerror (errno ));
86
85
87
86
pfree (filename );
88
87
You can’t perform that action at this time.
0 commit comments