e97569d20a
Currently newsyslog supports <include> directive that is used in our default /etc/newsyslog.conf in the following form: <include> /usr/local/etc/newsyslog.conf.d/* While this is suitable for ports installing their own rules for logs rotation, this also makes newsyslog break entire processing of all files if it encounters single line it cannot parse. This includes lines referring to nonexistent username/group for log ownership, so newsyslog stops calling errx() function in the parser. With this fix, newsyslog uses warnx() instead of errx() in such cases to print a warning, recover gracefully and continue with execution. Among other cases, this unbreaks initial creation of log files having flag "C" at boot time (newsyslog -CN). This is most important for systems having RAM-based /var file system like nanobsd(8)-based that rely on newsyslog to bring system log files into existence. MFC after: 1 month |
||
---|---|---|
.. | ||
newsyslog.conf.d | ||
tests | ||
extern.h | ||
Makefile | ||
Makefile.depend | ||
newsyslog.8 | ||
newsyslog.c | ||
newsyslog.conf | ||
newsyslog.conf.5 | ||
pathnames.h | ||
ptimes.c |