Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 502445

Summary: Sys::Syslog can not deal with EMERG level messages
Product: Red Hat Enterprise Linux 5 Reporter: Lubomir Rintel <lkundrak>
Component: perlAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-25 13:58:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Be able to handle EMERG/LOG_EMERG correctly
none
Revised patch, allows LOG_KERN which clashes with EMERG none

Description Lubomir Rintel 2009-05-25 10:38:21 UTC
Created attachment 345299 [details]
Be able to handle EMERG/LOG_EMERG correctly

Version-Release number of selected component (if applicable):

perl-5.8.8-15.el5_2.1
  
Actual results:

[root@trunk:~] perl -MSys::Syslog -e 'syslog LOG_EMERG => "boo"'
syslog: invalid level/facility: LOG_EMERG at -e line 1

Expected results:

09/05/25 12:25:09 role=?, status=?
[root@trunk:~] perl -MSys::Syslog -e 'syslog LOG_EMERG => "boo"'

Message from syslogd@trunk at May 25 12:25:16 ...
 root: boo

Additional info:

Patch is attached. Fixed upstream. Upstream's new version of the module has the method almost completely rewritten, a similar conditional (permitting log level with numerical value 0) can be spotted there though.

Comment 1 Lubomir Rintel 2009-05-25 11:25:41 UTC
Created attachment 345302 [details]
Revised patch, allows LOG_KERN which clashes with EMERG

Comment 2 Marcela Mašláňová 2009-05-25 13:58:52 UTC
This was already fixed in #454602. This update should be in RHEL-5.3 update.

*** This bug has been marked as a duplicate of bug 454602 ***