summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-11-22 15:46:20 +0100
committerAndreas Schneider <asn@samba.org>2012-12-03 14:35:09 +0100
commit1ded99cd1447b674a7af6e738a492a597425b6ba (patch)
tree601b817bf68841160596b53d184fe1a47d9d67a0 /source3/torture
parent531af0af1a178fbae82ae2d84598e44d8a750fae (diff)
downloadsamba-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/torture')
-rw-r--r--source3/torture/masktest.c7
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);
}
}