From 0c55a7606fe5ff9a1cf0be13a13a3a657cdd1e53 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 22 Jul 2011 17:17:46 +0200 Subject: [PATCH] s3:smbclient: use lp_load_client() --- source3/client/client.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index e6fffcbcfd2..44a151e78f1 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -5301,8 +5301,6 @@ static int do_message_op(struct user_auth_info *a_info) pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, 0); poptSetOtherOptionHelp(pc, "service "); - lp_set_in_client(true); /* Make sure that we tell lp_load we are */ - while ((opt = poptGetNextOpt(pc)) != -1) { /* if the tar option has been called previouslt, now we need to eat out the leftovers */ @@ -5433,7 +5431,7 @@ static int do_message_op(struct user_auth_info *a_info) if ( override_logfile ) setup_logging( lp_logfile(), DEBUG_FILE ); - if (!lp_load(get_dyn_CONFIGFILE(),true,false,false,true)) { + if (!lp_load_client(get_dyn_CONFIGFILE())) { fprintf(stderr, "%s: Can't load %s - run testparm to debug it\n", argv[0], get_dyn_CONFIGFILE()); } -- 2.11.4.GIT