1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Remove feof(stdin) calls related to when to prompt for a password,

leftovers from when the password was read from stdin.
This commit is contained in:
Peter Eisentraut
2009-02-25 13:24:40 +00:00
parent cd3b750929
commit a3c502c89f
7 changed files with 14 additions and 21 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/contrib/vacuumlo/vacuumlo.c,v 1.37 2009/01/01 17:23:32 momjian Exp $
* $PostgreSQL: pgsql/contrib/vacuumlo/vacuumlo.c,v 1.38 2009/02/25 13:24:40 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -91,8 +91,7 @@ vacuumlo(char *database, struct _param * param)
if (PQstatus(conn) == CONNECTION_BAD &&
PQconnectionNeedsPassword(conn) &&
password == NULL &&
!feof(stdin))
password == NULL)
{
PQfinish(conn);
password = simple_prompt("Password: ", 100, false);