Remove use of global_loadparm when comparing nt status error - use
[jra/samba/.git] / source4 / param / loadparm.c
index 201013609eb5cf2a8e2cb4f2d8e76ecce7e3321f..b79be28ac059abae1f2d2542d91778817c71d6c0 100644 (file)
@@ -2480,6 +2480,8 @@ bool lp_load(struct loadparm_context *lp_ctx, const char *filename)
 
        reload_charcnv(lp_ctx);
 
+       ntstatus_check_dos_mapping = lp_nt_status_support(lp_ctx);
+
        /* FIXME: Check locale in environment for this: */
        if (strcmp(lp_display_charset(lp_ctx), lp_unix_charset(lp_ctx)) != 0)
                d_set_iconv(smb_iconv_open(lp_display_charset(lp_ctx), lp_unix_charset(lp_ctx)));