[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: syslogd problem
From:       Jeff Pohlmeyer <yetanothergeek () gmail ! com>
Date:       2023-09-21 12:10:49
Message-ID: CAEuRe+0OfPzWkFvPoqWeQv-V8aDP+b9g5hVSXnVUA9+ZUWwSTA () mail ! gmail ! com
[Download RAW message or body]

On Wed, Sep 20, 2023 at 11:54 AM Michael Tokarev <mjt@tls.msk.ru> wrote:
> It's been broken for quite some time

Thanks, I didn't know about that one. These are actually two different
problems, your "read() not blocking" fix, and my "OPT_locallog not in
opts" fix. After applying both fixes I was finally able to get syslogd
working from my init script.

Sure hope these can make it into master soon!

 - Jeff

["syslogd-option_mask32.patch" (text/x-patch)]

diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 83b5c0cf6..97578813b 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -1178,7 +1178,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);
 		}


_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic