git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
270d721
)
ntlm_auth: Use new samba_getpass() function.
author
Andreas Schneider
<asn@samba.org>
Fri, 23 Nov 2012 13:29:38 +0000
(14:29 +0100)
committer
Andreas Schneider
<asn@samba.org>
Mon, 3 Dec 2012 13:35:09 +0000
(14:35 +0100)
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
source3/utils/ntlm_auth.c
patch
|
blob
|
history
diff --git
a/source3/utils/ntlm_auth.c
b/source3/utils/ntlm_auth.c
index 2bf9747b2fb68fd583e3245edd2eb8993dd8bd97..6b45354b5120c640e43a630d672b3bb9ed3def10 100644
(file)
--- a/
source3/utils/ntlm_auth.c
+++ b/
source3/utils/ntlm_auth.c
@@
-2899,7
+2899,13
@@
enum {
}
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_STRDUP(pwd);
+ }
}
if (diagnostics) {