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 /contrib/oid2name | |
| 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 'contrib/oid2name')
| -rw-r--r-- | contrib/oid2name/oid2name.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c index 86c2ead3772..0e59cc3afde 100644 --- a/contrib/oid2name/oid2name.c +++ b/contrib/oid2name/oid2name.c @@ -5,7 +5,7 @@ * Originally by * B. Palmer, bpalmer@crimelabs.net 1-17-2001 * - * $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.33 2007/12/11 02:31:49 tgl Exp $ + * $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.34 2009/02/25 13:24:40 petere Exp $ */ #include "postgres_fe.h" @@ -293,8 +293,7 @@ sql_conn(struct options * my_opts) if (PQstatus(conn) == CONNECTION_BAD && PQconnectionNeedsPassword(conn) && - password == NULL && - !feof(stdin)) + password == NULL) { PQfinish(conn); password = simple_prompt("Password: ", 100, false); |
