[PATCH 07/16] torture: Use new samba_getpass() in masktest.
Andreas Schneider
asn at samba.org
Fri Nov 23 08:41:11 MST 2012
Signed-off-by: Andreas Schneider <asn at samba.org>
---
source3/torture/masktest.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c
index 58e0982..8332e80 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);
}
}
--
1.8.0
More information about the samba-technical
mailing list