diff options
author | Peter Eisentraut | 2009-02-25 13:24:40 +0000 |
---|---|---|
committer | Peter Eisentraut | 2009-02-25 13:24:40 +0000 |
commit | a3c502c89f624aed5ee9f6e896740f86a28cc50e (patch) | |
tree | 76a21af9d2777ac712d64d3eac52f9aae065961d /src/bin/scripts/common.c | |
parent | cd3b750929af5dd6afb5881592e2a0276d1639ef (diff) |
Remove feof(stdin) calls related to when to prompt for a password,
leftovers from when the password was read from stdin.
Diffstat (limited to 'src/bin/scripts/common.c')
-rw-r--r-- | src/bin/scripts/common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c index 0318f99a2b1..2587f1a99df 100644 --- a/src/bin/scripts/common.c +++ b/src/bin/scripts/common.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.33 2009/01/01 17:23:55 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.34 2009/02/25 13:24:40 petere Exp $ * *------------------------------------------------------------------------- */ @@ -124,8 +124,7 @@ connectDatabase(const char *dbname, const char *pghost, const char *pgport, if (PQstatus(conn) == CONNECTION_BAD && PQconnectionNeedsPassword(conn) && - password == NULL && - !feof(stdin)) + password == NULL) { PQfinish(conn); password = simple_prompt("Password: ", 100, false); |