From 39b2178fc998c9811636a67546d0818df6ca14c7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 26 Apr 2005 07:10:43 +0000 Subject: r6483: fix anonymous connections, '-U %' or '-U ""%""' can be used for this metze (This used to be commit d31b4d7df375c0d4ea962a0df1693778d56f03ec) --- source4/lib/cmdline/popt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/cmdline') diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c index 68f491a188..94b72c520d 100644 --- a/source4/lib/cmdline/popt_common.c +++ b/source4/lib/cmdline/popt_common.c @@ -197,7 +197,7 @@ static void popt_common_credentials_callback(poptContext con, cli_credentials_parse_string(cmdline_credentials, arg, CRED_SPECIFIED); - if ((lp=strchr_m(arg,'%'))) { + if (cmdline_credentials->password && (lp=strchr_m(arg,'%'))) { memset(lp,0,strlen(cmdline_credentials->password)); } } -- cgit