From d29db976dcffef772044b1e5246ec6715d6afbbb Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 4 Aug 2008 13:31:26 +0200 Subject: [PATCH] net: Fix IPC connections with interactive password prompt. This fixes a regression introduced with 52f916c6. Some net subcommands didn't work when the username, but not the corresponding password was given on the command line. --- source/utils/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/net.c b/source/utils/net.c index d8ea462e43b..38ebaf6c26e 100644 --- a/source/utils/net.c +++ b/source/utils/net.c @@ -496,7 +496,7 @@ struct cli_state *net_make_ipc_connection_ex( const char *domain, const char *se server_ip = *ip; } - if (opt_user_name && opt_password) { + if (opt_user_name) { nt_status = connect_to_ipc(&cli, &server_ip, server_name); if (NT_STATUS_IS_OK(nt_status)) { goto connected; -- 2.11.4.GIT