From 1ded99cd1447b674a7af6e738a492a597425b6ba Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 22 Nov 2012 15:46:20 +0100 Subject: torture: Use new samba_getpass() in masktest. Reviewed-by: Jelmer Vernooij --- source3/torture/masktest.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source3/torture') diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c index 58e09822a1..8332e806db 100644 --- a/source3/torture/masktest.c +++ b/source3/torture/masktest.c @@ -198,8 +198,11 @@ static struct cli_state *connect_one(char *share) } if (!got_pass) { - char *pass = getpass("Password: "); - if (pass) { + char pwd[256] = {0}; + int rc; + + rc = samba_getpass("Password: ", pwd, sizeof(pwd), false, false); + if (rc == 0) { fstrcpy(password, pass); } } -- cgit