From 531af0af1a178fbae82ae2d84598e44d8a750fae Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 22 Nov 2012 15:46:06 +0100 Subject: torture: Use new samba_getpass() in smbtorture3. Reviewed-by: Jelmer Vernooij --- source3/torture/torture.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3/torture') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 89b34e4da0..d31c907d22 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -9395,9 +9395,12 @@ static void usage(void) if(use_kerberos && !gotuser) gotpass = True; while (!gotpass) { - p = getpass("Password:"); - if (p) { - fstrcpy(password, p); + char pwd[256] = {0}; + int rc; + + rc = samba_getpass("Password:", pwd, sizeof(pwd), false, false); + if (rc == 0) { + fstrcpy(password, pwd); gotpass = 1; } } -- cgit