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