aboutsummaryrefslogtreecommitdiff
path: root/busybox/0031-syslogd-fix-wrong-OPT_locallog-flag-detection.patch
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-25 15:05:55 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-25 15:05:55 +0000
commit9a348944d213706b16546ec8e2ab6caf0b596ad6 (patch)
tree96317ac0f218e4f8540634b137b63bb07ac0642e /busybox/0031-syslogd-fix-wrong-OPT_locallog-flag-detection.patch
parent7e73781cb2e573984e0b0afa4e689c83fe62fa04 (diff)
downloadalicelinux-9a348944d213706b16546ec8e2ab6caf0b596ad6.tar.gz
alicelinux-9a348944d213706b16546ec8e2ab6caf0b596ad6.zip
Woodpecker CI e4bf8271be45598172db7947840ed98db83f3d0f [SKIP CI]
Diffstat (limited to 'busybox/0031-syslogd-fix-wrong-OPT_locallog-flag-detection.patch')
-rw-r--r--busybox/0031-syslogd-fix-wrong-OPT_locallog-flag-detection.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/busybox/0031-syslogd-fix-wrong-OPT_locallog-flag-detection.patch b/busybox/0031-syslogd-fix-wrong-OPT_locallog-flag-detection.patch
new file mode 100644
index 00000000..efb1410b
--- /dev/null
+++ b/busybox/0031-syslogd-fix-wrong-OPT_locallog-flag-detection.patch
@@ -0,0 +1,33 @@
+From 3db0791a409be9b4c2f08cf3081d2d5141c3314c Mon Sep 17 00:00:00 2001
+From: Andrej Valek <andrej.v@skyrain.eu>
+Date: Wed, 16 Oct 2024 10:15:08 +0200
+Subject: [PATCH] syslogd: fix wrong OPT_locallog flag detection
+
+The OPT_locallog was set on "option_mask32" but checked on local
+"opts" variable. While this flag it's used on multiple places can't be
+has to be used with "option_mask32". Without this change syslogd
+is more-less unusable while no messages are logged locally.
+
+See:
+
+* https://lists.busybox.net/pipermail/busybox/2024-October/090969.html
+* https://lists.busybox.net/pipermail/busybox/2023-September/090499.html
+
+Signed-off-by: Andrej Valek <andrej.v@skyrain.eu>
+---
+ sysklogd/syslogd.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
+index 7558051f0..fa03aa280 100644
+--- a/sysklogd/syslogd.c
++++ b/sysklogd/syslogd.c
+@@ -1179,7 +1179,7 @@ int syslogd_main(int argc UNUSED_PARAM, char **argv)
+ }
+ }
+ #endif
+- if (!ENABLE_FEATURE_REMOTE_LOG || (opts & OPT_locallog)) {
++ if (!ENABLE_FEATURE_REMOTE_LOG || (option_mask32 & OPT_locallog)) {
+ recvbuf[sz] = '\0'; /* ensure it *is* NUL terminated */
+ split_escape_and_log(recvbuf, sz);
+ }