Skip Menu |

This queue is for tickets about the Sys-Syslog CPAN distribution.

Report information
The Basics
Id: 94689
Status: resolved
Priority: 0/
Queue: Sys-Syslog

People
Owner: Nobody in particular
Requestors: marcin [...] sacha.pl
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 0.29



Subject: closelog(): wrong handling of syslog flags
Date: Sun, 13 Apr 2014 18:01:20 +0200
To: bug-Sys-Syslog [...] rt.cpan.org
From: "Marcin Sacha" <marcin [...] sacha.pl>
Hello, I've found a quite serious bug in closelog() function: there is no reset of %options hash. It is global variable, so it must be reset to the default values after calling closelog() - same, like $facility and $indent variables are reset to default empty value. Now it is not possible to change the flag value from 1 to 0 in the subsequent openlog() call - the function only enables flags, not disables them. Regards, MJS
Marcin Sacha wrote: Show quoted text
> Hello, > > I've found a quite serious bug in closelog() function: there is > no reset of %options hash. It is global variable, so it must be > reset to the default values after calling closelog() - same, like > $facility and $indent variables are reset to default empty value. > Now it is not possible to change the flag value from 1 to 0 in the > subsequent openlog() call - the function only enables flags, not > disables them.
This bug was fixed in version 0.29, released on 2011.04.18 -- Close the world, txEn eht nepO.