diff cli-authinteract.c @ 268:475a818dd6e7

Cancel a dbclient password prompt if the user presses ctrl-c. Enter still has to be pressed since glibc blocks ctrl-c in getpass()
author Matt Johnston <matt@ucc.asn.au>
date Sun, 15 Jan 2006 06:43:24 +0000
parents d059b0bb57dd
children 973fccb59ea4 31743c9bdf78
line wrap: on
line diff
--- a/cli-authinteract.c	Sun Jan 15 06:39:48 2006 +0000
+++ b/cli-authinteract.c	Sun Jan 15 06:43:24 2006 +0000
@@ -115,7 +115,7 @@
 		echo = buf_getbool(ses.payload);
 
 		if (!echo) {
-			unsigned char* p = getpass(prompt);
+			unsigned char* p = getpass_or_cancel(prompt);
 			response = m_strdup(p);
 			m_burn(p, strlen(p));
 		} else {