diff options
| author | Andreas Schneider <asn@samba.org> | 2012-11-22 15:46:06 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2012-12-03 14:35:09 +0100 |
| commit | 531af0af1a178fbae82ae2d84598e44d8a750fae (patch) | |
| tree | 78a7acb7079fd76946bbad47d7299e6d881814fd /source3 | |
| parent | 17bcdb52001f4625439c0c6fea2cfe174b63ce08 (diff) | |
| download | samba-531af0af1a178fbae82ae2d84598e44d8a750fae.tar.gz samba-531af0af1a178fbae82ae2d84598e44d8a750fae.tar.xz samba-531af0af1a178fbae82ae2d84598e44d8a750fae.zip | |
torture: Use new samba_getpass() in smbtorture3.
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source3')
| -rw-r--r-- | source3/torture/torture.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 89b34e4da0..d31c907d22 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -9395,9 +9395,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; } } |
