diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2009-02-25 13:24:40 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2009-02-25 13:24:40 +0000 |
| commit | a3c502c89f624aed5ee9f6e896740f86a28cc50e (patch) | |
| tree | 76a21af9d2777ac712d64d3eac52f9aae065961d /src/bin/psql/startup.c | |
| parent | cd3b750929af5dd6afb5881592e2a0276d1639ef (diff) | |
| download | postgresql-a3c502c89f624aed5ee9f6e896740f86a28cc50e.tar.gz | |
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/psql/startup.c')
| -rw-r--r-- | src/bin/psql/startup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c index b5c8dcea5c..ba4871f88e 100644 --- a/src/bin/psql/startup.c +++ b/src/bin/psql/startup.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2009, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.153 2009/01/01 17:23:55 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.154 2009/02/25 13:24:40 petere Exp $ */ #include "postgres_fe.h" @@ -189,8 +189,7 @@ main(int argc, char *argv[]) if (PQstatus(pset.db) == CONNECTION_BAD && PQconnectionNeedsPassword(pset.db) && - password == NULL && - !feof(stdin)) + password == NULL) { PQfinish(pset.db); password = simple_prompt(password_prompt, 100, false); |
