1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Add comment that on Win32, we don't need to check the .pgpass file

permission, per Magnus.
This commit is contained in:
Bruce Momjian
2007-02-20 15:20:51 +00:00
parent b16dab66a7
commit 2d848857ee

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.343 2007/02/10 14:58:55 petere Exp $ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.344 2007/02/20 15:20:51 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -3642,6 +3642,8 @@ PasswordFromFile(char *hostname, char *port, char *dbname, char *username)
pgpassfile); pgpassfile);
return NULL; return NULL;
} }
#else
/* On Win32, the directory is protected, so we don't have to check the file. */
#endif #endif
fp = fopen(pgpassfile, "r"); fp = fopen(pgpassfile, "r");