summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-11-22 15:46:06 +0100
committerAndreas Schneider <asn@samba.org>2012-12-03 14:35:09 +0100
commit531af0af1a178fbae82ae2d84598e44d8a750fae (patch)
tree78a7acb7079fd76946bbad47d7299e6d881814fd /source3
parent17bcdb52001f4625439c0c6fea2cfe174b63ce08 (diff)
downloadsamba-531af0af1a178fbae82ae2d84598e44d8a750fae.tar.gz
samba-531af0af1a178fbae82ae2d84598e44d8a750fae.tar.bz2
samba-531af0af1a178fbae82ae2d84598e44d8a750fae.zip
torture: Use new samba_getpass() in smbtorture3.
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/torture.c9
1 files changed, 6 insertions, 3 deletions
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;
}
}