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 /contrib/pgbench/pgbench.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 'contrib/pgbench/pgbench.c')
| -rw-r--r-- | contrib/pgbench/pgbench.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c index 03ce502f92..4cc7b8b19e 100644 --- a/contrib/pgbench/pgbench.c +++ b/contrib/pgbench/pgbench.c @@ -4,7 +4,7 @@ * A simple benchmark program for PostgreSQL * Originally written by Tatsuo Ishii and enhanced by many contributors. * - * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.83 2009/01/01 17:23:32 momjian Exp $ + * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.84 2009/02/25 13:24:40 petere Exp $ * Copyright (c) 2000-2009, PostgreSQL Global Development Group * ALL RIGHTS RESERVED; * @@ -309,8 +309,7 @@ doConnect(void) if (PQstatus(conn) == CONNECTION_BAD && PQconnectionNeedsPassword(conn) && - password == NULL && - !feof(stdin)) + password == NULL) { PQfinish(conn); password = simple_prompt("Password: ", 100, false); |
