newsyslog - Initialize some fields
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 28 Jan 2018 20:42:48 +0000 (21:42 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 28 Jan 2018 20:42:48 +0000 (21:42 +0100)
commit323cdf950d54a7f9e0610eebd28a192a60175d73
treebeab4e03aaf623365ae8217b8e91a3146b56f69c
parent31c425dce6d1e7116746b60ba5eca7892e032728
newsyslog - Initialize some fields

When the 'R' flag is used with a newsyslog.conf entry, some fields of
the corresponding struct sigwork_entry were left uninitialized,
potentially causing an early return from do_sigwork(). Ensure that these
fields are initialized, and handle the 'R' flag properly in
do_sigwork().

Obtained-from: FreeBSD (r245961)
usr.sbin/newsyslog/newsyslog.c