s4:torture:libnetapi: use lp_load_global() instead of lp_load()
authorMichael Adam <obnox@samba.org>
Wed, 30 Jul 2014 22:42:01 +0000 (00:42 +0200)
committerIra Cooper <ira@samba.org>
Wed, 22 Apr 2015 11:57:30 +0000 (13:57 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
source4/torture/libnetapi/libnetapi.c

index 431b531beb11125490063ddd6db6e7d9ec3aa1c7..2a443ecd271104d3d5cea937ec018c36d6a13715 100644 (file)
@@ -33,7 +33,7 @@ bool torture_libnetapi_init_context(struct torture_context *tctx,
        struct libnetapi_ctx *ctx;
        TALLOC_CTX *frame = talloc_stackframe();
 
-       if (!lp_load(lpcfg_configfile(tctx->lp_ctx), true, false, false, true)) {
+       if (!lp_load_global(lpcfg_configfile(tctx->lp_ctx))) {
                fprintf(stderr, "error loading %s\n", lpcfg_configfile(tctx->lp_ctx));
                talloc_free(frame);
                return W_ERROR_V(WERR_GENERAL_FAILURE);