diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index a3d1293..8c5754c 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -7995,14 +7995,12 @@ passwordFromFile(const char *hostname, const char *port, const char *dbname, return NULL; } - /* If password file is insecure, alert the user and ignore it. */ + /* If password file is insecure, alert the user */ if (stat_buf.st_mode & (S_IRWXG | S_IRWXO)) { fprintf(stderr, libpq_gettext("WARNING: password file \"%s\" has group or world access; permissions should be u=rw (0600) or less\n"), pgpassfile); - fclose(fp); - return NULL; } #else