aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2007-02-20 15:20:51 +0000
committerBruce Momjian <bruce@momjian.us>2007-02-20 15:20:51 +0000
commit2d848857ee27ffec91344aa244528d9af35a4e06 (patch)
tree9e1735f0d379630adabda9230950204352706eca
parentb16dab66a7f95b1d3bb4be105070b89d54f8ba95 (diff)
downloadpostgresql-2d848857ee27ffec91344aa244528d9af35a4e06.tar.gz
postgresql-2d848857ee27ffec91344aa244528d9af35a4e06.zip
Add comment that on Win32, we don't need to check the .pgpass file
permission, per Magnus.
-rw-r--r--src/interfaces/libpq/fe-connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index e7f61ebdb96..6d8198ac0e7 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -8,7 +8,7 @@
*
*
* 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);
return NULL;
}
+#else
+ /* On Win32, the directory is protected, so we don't have to check the file. */
#endif
fp = fopen(pgpassfile, "r");