diff options
author | Andreas Schneider <asn@samba.org> | 2012-11-22 15:46:20 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2012-12-03 14:35:09 +0100 |
commit | 1ded99cd1447b674a7af6e738a492a597425b6ba (patch) | |
tree | 601b817bf68841160596b53d184fe1a47d9d67a0 /source3 | |
parent | 531af0af1a178fbae82ae2d84598e44d8a750fae (diff) | |
download | samba-1ded99cd1447b674a7af6e738a492a597425b6ba.tar.gz samba-1ded99cd1447b674a7af6e738a492a597425b6ba.tar.bz2 samba-1ded99cd1447b674a7af6e738a492a597425b6ba.zip |
torture: Use new samba_getpass() in masktest.
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/masktest.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); } } |