[package] busybox: update to 1.19.2 (thanks to Peter Wagner)
[openwrt/svn-archive/archive.git] / package / busybox / patches / 000-upstream-syslogd.patch
1 --- a/sysklogd/syslogd.c
2 +++ b/sysklogd/syslogd.c
3 @@ -278,7 +278,7 @@ static void parse_syslogdcfg(const char
4 parser_t *parser;
5
6 parser = config_open2(file ? file : "/etc/syslog.conf",
7 - file ? xfopen_for_read : fopen_or_warn_stdin);
8 + file ? xfopen_for_read : fopen_for_read);
9 if (!parser)
10 /* didn't find default /etc/syslog.conf */
11 /* proceed as if we built busybox without config support */
12 @@ -678,7 +678,7 @@ static void timestamp_and_log(int pri, c
13 if (LOG_PRI(pri) < G.logLevel) {
14 #if ENABLE_FEATURE_IPC_SYSLOG
15 if ((option_mask32 & OPT_circularlog) && G.shbuf) {
16 - log_to_shmem(msg);
17 + log_to_shmem(G.printbuf);
18 return;
19 }
20 #endif