]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
loadparm: setup debug subsystem setting max_log_size from config
authorRalph Boehme <slow@samba.org>
Fri, 13 Nov 2020 11:34:50 +0000 (12:34 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Dec 2020 10:44:15 +0000 (10:44 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14248

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit ab2c712c016f4e4dacd5064b9eb8f6417f4b9b60)

lib/param/loadparm.c

index 6329128390566c9b11d616077a2fe6e19afaf6c0..8bca0ee632a626f4222daf07184f3b714f25589e 100644 (file)
@@ -3159,6 +3159,7 @@ static bool lpcfg_update(struct loadparm_context *lp_ctx)
        settings.debug_pid = lp_ctx->globals->debug_pid;
        settings.debug_uid = lp_ctx->globals->debug_uid;
        settings.debug_class = lp_ctx->globals->debug_class;
+       settings.max_log_size = lp_ctx->globals->max_log_size;
        debug_set_settings(&settings, lp_ctx->globals->logging,
                           lp_ctx->globals->syslog,
                           lp_ctx->globals->syslog_only);