s3:smbclient: use lp_load_client()
authorMichael Adam <obnox@samba.org>
Fri, 22 Jul 2011 15:17:46 +0000 (17:17 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 28 Jul 2011 09:17:27 +0000 (11:17 +0200)
source3/client/client.c

index e6fffcbcfd2c250abb1b405f16434da73d3e6726..44a151e78f196ce75d498afa2a4838bfe64392af 100644 (file)
@@ -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 <password>");
 
-        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());
        }