git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
torture: Use new samba_getpass() in masktest.
[samba.git]
/
source3
/
torture
/
masktest.c
diff --git
a/source3/torture/masktest.c
b/source3/torture/masktest.c
index 58e09822a148fbf3e4bf594699b6201d121b2e06..8332e806db4afe5a45fecc24ff8b2b2a5c9ad9f9 100644
(file)
--- 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);
}
}