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

index e16086dd6793ea3ddf520e7583218701da4625fb..0be8d51878e0e27595689a0ac44996b4f18d89c0 100644 (file)
@@ -245,11 +245,9 @@ main(int argc,                     /* I - Number of command-line arguments */
 
        setup_logging("smbspool", DEBUG_STDOUT);
 
-       lp_set_in_client(True); /* Make sure that we tell lp_load we are */
-
        load_case_tables();
 
-       if (!lp_load(get_dyn_CONFIGFILE(), True, False, False, True)) {
+       if (!lp_load_client(get_dyn_CONFIGFILE())) {
                fprintf(stderr, "ERROR: Can't load %s - run testparm to debug it\n", get_dyn_CONFIGFILE());
                goto done;
        }
index 3409a34aa2158e8947f97f11bdf7d3bbbd1763fb..038032cf48707b8b1458488bb218bbfd4360a715 100644 (file)
@@ -9139,7 +9139,7 @@ bool lp_load_client(const char *file_name)
 {
        lp_set_in_client(true);
 
-       return lp_load_global_only(file_name);
+       return lp_load_global(file_name);
 }
 
 bool lp_load_with_registry_shares(const char *pszFname,