summaryrefslogtreecommitdiff
path: root/source3/torture/locktest2.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture/locktest2.c')
-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);
}
}