]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r245961 r245962 r245963.
authormarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 17 Feb 2013 19:49:29 +0000 (19:49 +0000)
committermarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 17 Feb 2013 19:49:29 +0000 (19:49 +0000)
commit3c82b77f5d8d83d61b8287bf1db1557b9f4d496e
treec91bb2fb65dec907aa71d7c415b7b15f69f94a9b
parent14d86042e76c7d25b2404178291ef2980daf144d
MFC r245961 r245962 r245963.

MFC r245961:
  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().

MFC r245962:
  Ensure that newsyslog -n prints the correct message for a rotation rule
  that uses the 'R' flag.

MFC r245963:
  Rename the run_cmd field to sw_runcmd to make it consistent with the
  other fields in struct sigwork_entry.

Approved by: emaste (co-mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@246919 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/newsyslog/newsyslog.c