summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index f8cc27d63a..0e2e07bd71 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -4357,9 +4357,12 @@ static int cmd_logon(void)
}
if (!next_token_talloc(ctx, &cmd_ptr,&l_password,NULL)) {
- char *pass = getpass("Password: ");
- if (pass) {
- l_password = talloc_strdup(ctx,pass);
+ char pwd[256] = {0};
+ int rc;
+
+ rc = samba_getpass("Password: ", pwd, sizeof(pwd), false, false);
+ if (rc == 0) {
+ l_password = talloc_strdup(ctx, pwd);
}
}
if (!l_password) {