lib/param: add default for getwd cache parameter
authorGarming Sam <garming@catalyst.net.nz>
Tue, 7 Jan 2014 21:20:20 +0000 (10:20 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 Jan 2014 04:26:43 +0000 (17:26 +1300)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
lib/param/loadparm.c

index 40cc357a1c3a3a00b4466f69bd13a3734ca2a657..aed8cdbd5b8bb59387051baa0c1bb340c0c3c0ae 100644 (file)
@@ -2266,6 +2266,8 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
 
        lpcfg_do_global_parameter(lp_ctx, "passdb backend", "tdbsam");
 
+       lpcfg_do_global_parameter(lp_ctx, "getwd cache", "True");
+
        for (i = 0; parm_table[i].label; i++) {
                if (!(lp_ctx->flags[i] & FLAG_CMDLINE)) {
                        lp_ctx->flags[i] |= FLAG_DEFAULT;