summaryrefslogtreecommitdiff
path: root/cli-auth.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-06-12 14:41:32 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-06-12 14:41:32 +0000
commit16be43332cbec7aaa7d9aa5bde9f83ee47ae9269 (patch)
treea07147b04c250a99f5cd7e94cb64852fca001dfa /cli-auth.c
parentea50c53f6112313a5ebf002f165c71f223ce9d02 (diff)
downloaddropbear-16be43332cbec7aaa7d9aa5bde9f83ee47ae9269.tar.gz
Make the dbclient password prompt more useful
Diffstat (limited to 'cli-auth.c')
-rw-r--r--cli-auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-auth.c b/cli-auth.c
index ba4cf6c..4c17a21 100644
--- a/cli-auth.c
+++ b/cli-auth.c
@@ -281,11 +281,11 @@ void cli_auth_try() {
/* A helper for getpass() that exits if the user cancels. The returned
* password is statically allocated by getpass() */
-char* getpass_or_cancel()
+char* getpass_or_cancel(char* prompt)
{
char* password = NULL;
- password = getpass("Password: ");
+ password = getpass(prompt);
/* 0x03 is a ctrl-c character in the buffer. */
if (password == NULL || strchr(password, '\3') != NULL) {