s3:smbcontrol: use lp_load_global(): smbcontrol does not need to load the shares
authorMichael Adam <obnox@samba.org>
Thu, 28 Jul 2011 08:23:53 +0000 (10:23 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 28 Jul 2011 09:17:38 +0000 (11:17 +0200)
source3/utils/smbcontrol.c

index 5520dcf608a3017539e2e723240b161749f3bd01..91f6493fba2a65af74f1bfdef30f54fe30b9c1fd 100644 (file)
@@ -1471,7 +1471,7 @@ int main(int argc, const char **argv)
        if (argc <= 1)
                usage(pc);
 
-       lp_load(get_dyn_CONFIGFILE(),False,False,False,True);
+       lp_load_global(get_dyn_CONFIGFILE());
 
        /* Need to invert sense of return code -- samba
          * routines mostly return True==1 for success, but