Re: syslogd: prevent writing empty fields to console

2016-07-01 Thread Alexander Bluhm
OK bluhm@ On Fri, Jul 01, 2016 at 07:20:25AM -0600, Todd C. Miller wrote: > If syslogd encounters an error while processing syslog.conf the > error message goes to the console since logging has not been setup > yet. > > However, in this case, neither f->f_lasttime nor f->f_prevhost are > set. Th

syslogd: prevent writing empty fields to console

2016-07-01 Thread Todd C. Miller
If syslogd encounters an error while processing syslog.conf the error message goes to the console since logging has not been setup yet. However, in this case, neither f->f_lasttime nor f->f_prevhost are set. This results in 15 NUL bytes and two space characters preceding the actual message on the