]> git.samba.org - amitay/samba.git/commitdiff
s3:libnetapi: use lp_load_global()
authorMichael Adam <obnox@samba.org>
Tue, 26 Jul 2011 22:25:59 +0000 (00:25 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 28 Jul 2011 09:17:30 +0000 (11:17 +0200)
source3/lib/netapi/netapi.c

index 14259864ae2bce4f7fb979b3c74e4bb5a19f2acc..a4a8e447c18d294c9f200cd1d8f1d84b9c38da73 100644 (file)
@@ -77,7 +77,7 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
        lp_set_cmdline("log level", "0");
        setup_logging("libnetapi", DEBUG_STDERR);
 
-       if (!lp_load(get_dyn_CONFIGFILE(), true, false, false, true)) {
+       if (!lp_load_global(get_dyn_CONFIGFILE())) {
                TALLOC_FREE(frame);
                fprintf(stderr, "error loading %s\n", get_dyn_CONFIGFILE() );
                return W_ERROR_V(WERR_GENERAL_FAILURE);