|Subject:||bug: 'nofatal' option turns on all (or most) options.|
|Date:||Fri, 16 May 2008 14:11:39 -0500|
|To:||bug-Sys-Syslog [...] rt.cpan.org|
|From:||"Matt Gramlich" <matt.gramlich [...] gmail.com>|
Message body is not shown because sender requested not to inline it.
Attached is a patch for Sys-Syslog-0.24 perl version: 5.8.2 operating system: Fedora Core 2 (it will affect most [if not all] versions of Perl and Linux) The problem it fixes is one where passing 'nofatal' as an option to openlog ends up turning on all of the options. The problem lies in xlate() not seeing a LOG_NOFATAL and thus returning -1 which then gets passed on to C's syslog as a collection of bits with most of them enabled. Creating the constant LOG_NOFATAL at least gives xlate() something to find. The symptoms that I saw and then saw fixed were that all syslog traffic was also being printed to STDERR, eventhough I did NOT pass perror.