It seems that local logging with syslogd is no longer working for me.

I think commit 02378ce20c6d2df062357b6d60fc440609d203be
(syslogd: decrease stack usage, ~50 bytes)
has broken something.

After some digging, I noticed this:

On lines #1048-1049 :

    if (ENABLE_FEATURE_REMOTE_LOG && !(opts & OPT_remotelog)) // -R
        option_mask32 |= OPT_locallog;


But on line #1181 :

if (!ENABLE_FEATURE_REMOTE_LOG || (opts & OPT_locallog)) {

It looks like the code is setting OPT_locallog in "option_mask32"
but checking for it in "opts"

If I change line #1181 like this:
 - if (!ENABLE_FEATURE_REMOTE_LOG || (opts & OPT_locallog)) {
 + if (!ENABLE_FEATURE_REMOTE_LOG || (option_mask32 & OPT_locallog)) {

Then it works as expected.


 - Jeff
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to