From d0537c7506af0f7193fd11a63ccbac04a464485a Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 12 Jun 2006 14:41:32 +0000 Subject: Make the dbclient password prompt more useful --HG-- extra : convert_revision : 3bcfb35f7a6065dafbd695d943b95d64efff1c99 --- cli-auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli-auth.c') 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) { -- cgit v1.2.3