From: Katerina Kubecova Date: Mon, 12 May 2025 14:43:36 +0000 (+0200) Subject: Logs: Reset found_old flags in struct log_config X-Git-Tag: v3.0.4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00ded88f5e3a22959d4b462b99cc2279d6b0a8f1;p=thirdparty%2Fbird.git Logs: Reset found_old flags in struct log_config When recycling an existing configuration (configure undo), the found_old flags were already set. Due to this oversight, log files failed to reopen on configure undo. This fixes #188. --- diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index 3bcdd931c..b8ac47007 100644 --- a/sysdep/unix/log.c +++ b/sysdep/unix/log.c @@ -528,6 +528,13 @@ default_log_list(int initial, const char **syslog_name) void log_switch(int initial, list *logs, const char *new_syslog_name) { + if (logs) + { + struct log_config *l; + WALK_LIST(l, *logs) + l->found_old = 0; + } + if (initial) { log_domain = DOMAIN_NEW(logging);