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