s3:param: pass down lp_ctx in handle include
authorGarming Sam <garming@catalyst.net.nz>
Wed, 19 Mar 2014 22:30:39 +0000 (11:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 7 Jul 2014 21:32:36 +0000 (23:32 +0200)
Currently the lp_ctx will never actually be used as it will still go
through the current s3 code.

Change-Id: Iff236aea79b2294deb8faf175c7425d075a0f4c4
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
source3/param/loadparm.c

index af4555c74d0b158bb688ad1f79f1bd72f5e52260..fe0c8f56b9a9a7b8dfe7003a7e562443711876b0 100644 (file)
@@ -2409,7 +2409,7 @@ bool lp_include(struct loadparm_context *lp_ctx, int snum, const char *pszParmVa
        if (file_exist(fname)) {
                bool ret;
                include_depth++;
-               ret = pm_process(fname, lp_do_section, do_parameter, NULL);
+               ret = pm_process(fname, lp_do_section, do_parameter, lp_ctx);
                include_depth--;
                TALLOC_FREE(fname);
                return ret;