From 54a33a7a15a64899883d7110c14b96b80551ae1a Mon Sep 17 00:00:00 2001 From: Admin Pupkin Date: Thu, 21 May 2026 00:09:13 +0300 Subject: [PATCH] Fix P51 logd-rotation patch line numbers The service_logs declaration hunk was targeting line 48 instead of 49, causing patch to insert it inside the let persistent_log chain instead of inside the thread spawn closure. --- local/patches/base/P51-logd-rotation.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/patches/base/P51-logd-rotation.patch b/local/patches/base/P51-logd-rotation.patch index 6d83a9dad8..99af2f34b1 100644 --- a/local/patches/base/P51-logd-rotation.patch +++ b/local/patches/base/P51-logd-rotation.patch @@ -71,12 +71,12 @@ index 070de3d6..4ea5365d 100644 + } +} + -@@ -48,0 +107,4 @@ impl<'sock> LogScheme<'sock> { +@@ -49,0 +109,4 @@ impl<'sock> LogScheme<'sock> { + let mut service_logs: HashMap = HashMap::new(); + + let _ = std::fs::create_dir_all(LOG_DIR); + -@@ -51 +113 @@ impl<'sock> LogScheme<'sock> { +@@ -52 +114 @@ impl<'sock> LogScheme<'sock> { - OutputCmd::Log(line) => { + OutputCmd::Log { context, line } => { @@ -55,0 +118,22 @@ impl<'sock> LogScheme<'sock> {