diff cli-auth.c @ 334:8f3ec7c104d9

Make the dbclient password prompt more useful
author Matt Johnston <matt@ucc.asn.au>
date Mon, 12 Jun 2006 14:41:32 +0000
parents baea1d43e7eb
children fdf06a5a54e4
line wrap: on
line diff
--- a/cli-auth.c	Mon Jun 12 03:51:40 2006 +0000
+++ b/cli-auth.c	Mon Jun 12 14:41:32 2006 +0000
@@ -281,11 +281,11 @@
 
 /* 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) {