summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-11-22 15:39:34 +0100
committerAndreas Schneider <asn@samba.org>2012-12-03 14:35:09 +0100
commit17bcdb52001f4625439c0c6fea2cfe174b63ce08 (patch)
tree3f1ef29c243fcfe680640a26832f5a318bae350a /source3
parent3c79f85b6ec8e99bd58e615b692bbef1284fef03 (diff)
downloadsamba-17bcdb52001f4625439c0c6fea2cfe174b63ce08.tar.gz
samba-17bcdb52001f4625439c0c6fea2cfe174b63ce08.tar.bz2
samba-17bcdb52001f4625439c0c6fea2cfe174b63ce08.zip
torture: Use new samba_getpass() in locktest2.
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/locktest2.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/torture/locktest2.c b/source3/torture/locktest2.c
index aefdcd3ff2..6ab1ed4fa1 100644
--- a/source3/torture/locktest2.c
+++ b/source3/torture/locktest2.c
@@ -184,9 +184,12 @@ static struct cli_state *connect_one(char *share)
server_n = server;
if (!got_pass) {
- char *pass = getpass("Password: ");
- if (pass) {
- fstrcpy(password, pass);
+ char pwd[256] = {0};
+ int rc;
+
+ rc = samba_getpass("Password: ", pwd, sizeof(pwd), false, false);
+ if (rc == 0) {
+ fstrcpy(password, pwd);
}
}