[PATCH 06/16] torture: Use new samba_getpass() in smbtorture3.
Andreas Schneider
asn at samba.org
Fri Nov 23 08:41:10 MST 2012
Signed-off-by: Andreas Schneider <asn at samba.org>
---
source3/torture/torture.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 0cca680..19c280c 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -9394,9 +9394,12 @@ static void usage(void)
if(use_kerberos && !gotuser) gotpass = True;
while (!gotpass) {
- p = getpass("Password:");
- if (p) {
- fstrcpy(password, p);
+ char pwd[256] = {0};
+ int rc;
+
+ rc = samba_getpass("Password:", pwd, sizeof(pwd), false, false);
+ if (rc == 0) {
+ fstrcpy(password, pwd);
gotpass = 1;
}
}
--
1.8.0
More information about the samba-technical
mailing list