File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 3
3
*
4
4
* Copyright 2000 by PostgreSQL Global Development Group
5
5
*
6
- * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.64 2002/01/18 16:14:54 tgl Exp $
6
+ * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.65 2002/02/20 22:47:12 tgl Exp $
7
7
*/
8
8
#include "postgres_fe.h"
9
9
#include "command.h"
@@ -1286,12 +1286,11 @@ do_connect(const char *new_dbname, const char *new_user)
1286
1286
1287
1287
/* need to prompt for password? */
1288
1288
if (pset .getPassword )
1289
- pwparam = prompted_password = simple_prompt ("Password: " , 100 , false); /* need to save for
1290
- * free() */
1289
+ pwparam = prompted_password = simple_prompt ("Password: " , 100 , false);
1291
1290
1292
1291
/*
1293
- * Use old password if no new one given (if you didn't have an old
1294
- * one, fine)
1292
+ * Use old password ( if any) if no new one given and we are
1293
+ * reconnecting as same user
1295
1294
*/
1296
1295
if (!pwparam && oldconn && PQuser (oldconn ) && userparam &&
1297
1296
strcmp (PQuser (oldconn ), userparam ) == 0 )
You can’t perform that action at this time.
0 commit comments