diff options
| author | Peter Eisentraut | 2009-02-25 13:24:40 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2009-02-25 13:24:40 +0000 |
| commit | e6f11f6e5a792510c93cbb2b2255086d9eda6233 (patch) | |
| tree | 701a40ab383ef009bfe3425ea894625dc59a3766 /src/bin/scripts/common.c | |
| parent | bbf54130858694c6f31794a11bf505739dfb0c5b (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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c index 06c865c08c..1b0a4b2c52 100644 --- a/src/bin/scripts/common.c +++ b/src/bin/scripts/common.c @@ -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); |
