git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cc108c
)
ntlm_auth4: Use new samba_getpass() function.
author
Andreas Schneider
<asn@samba.org>
Fri, 23 Nov 2012 13:55:48 +0000
(14:55 +0100)
committer
Andreas Schneider
<asn@samba.org>
Mon, 3 Dec 2012 13:35:10 +0000
(14:35 +0100)
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
source4/utils/ntlm_auth.c
patch
|
blob
|
history
diff --git
a/source4/utils/ntlm_auth.c
b/source4/utils/ntlm_auth.c
index cc92c170b6511a38efd890aee99d9d93a9c25404..c363c9d5b657ab2f7f4a5901c9fe626ba1edbed5 100644
(file)
--- a/
source4/utils/ntlm_auth.c
+++ b/
source4/utils/ntlm_auth.c
@@
-1137,7
+1137,13
@@
int main(int argc, const char **argv)
}
if (!opt_password) {
- opt_password = getpass("password: ");
+ char pwd[256] = {0};
+ int rc;
+
+ rc = samba_getpass("Password: ", pwd, sizeof(pwd), false, false);
+ if (rc == 0) {
+ opt_password = smb_xstrdup(pwd);
+ }
}
{