Red Hat Bugzilla – Bug 292651
Sys::Syslog: Trailing #012#000
Last modified: 2008-02-27 07:22:21 EST
Description of problem:
All the perl-generated syslog messages now have trailing excessive #012#000
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. perl -MSys::Syslog -e 'syslog "info","abc";'
Sep 17 00:17:59 host0 lace: abc#012#000
Sep 17 00:17:44 host0 lace: abc
There is a similiar tracked bug:
The attached fix is not completely correct:
The trailing "\0" is expected iff AF_UNIX+SOCK_STREAM connection is used.
(But there are IMO other bugs preventing to use AF_UNIX+SOCK_STREAM even
if one would like to force Sys::Syslog to use it.)
The trailing "\n" is expected iff stderr is used.
Created attachment 196811 [details]
The incomplete fix.
I didn't reproduce it. I'd similar problem with cron some time ago, so that was
problem of rsyslog.