projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf482a9
)
Fix bogus prompt for password in -u case. Per gripe from Robert Treat.
author
Tom Lane
<
[email protected]
>
Sun, 9 Dec 2007 19:04:47 +0000
(19:04 +0000)
committer
Tom Lane
<
[email protected]
>
Sun, 9 Dec 2007 19:04:47 +0000
(19:04 +0000)
src/bin/psql/startup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/startup.c
b/src/bin/psql/startup.c
index 1395a6895fe4f2c23b9b031e358423730ca68f08..fd9dcc212499b9fdd85dc68a9de0b559eabbef72 100644
(file)
--- a/
src/bin/psql/startup.c
+++ b/
src/bin/psql/startup.c
@@
-194,8
+194,8
@@
main(int argc, char *argv[])
else
{
password_prompt = malloc(strlen(_("Password for user %s: ")) - 2 +
- strlen(
options.
username) + 1);
- sprintf(password_prompt, _("Password for user %s: "),
options.
username);
+ strlen(username) + 1);
+ sprintf(password_prompt, _("Password for user %s: "), username);
}
if (pset.getPassword)