From a4d4590b6cb8fb38ebd6876b2022ed2b8c3c7a1c Mon Sep 17 00:00:00 2001 From: Katerina Kubecova Date: Mon, 12 May 2025 16:43:36 +0200 Subject: [PATCH] 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. --- sysdep/unix/log.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index 1e21e6eee..3328f6e21 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); -- 2.47.2