Bug 432766

Summary: "Wrong file owner" displayed incorrectly.
Product: [Fedora] Fedora Reporter: Jan ONDREJ <ondrejj>
Component: logwatchAssignee: Ivana Varekova <varekova>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 7.3.4-11.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-28 21:39:04 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:

Description Jan ONDREJ 2008-02-14 09:36:55 UTC
Description of problem:
"Wrong file owner" is displayed incorrectly. There is no "WRONG FILE OWNER" text
in my cron log and logwatch sends me this message.

Version-Release number of selected component (if applicable):
logwatch-7.3.6-13.fc8
logwatch-7.3.4-10.fc7

How reproducible:
Always.

Steps to Reproduce:
1. echo "Feb 13 13:51:09 www crond[11818]: (root) error: Job execution of
per-minute job scheduled for 13:50 delayed into subsequent minute 13:51.
Skipping job run." | /usr/bin/perl /usr/share/logwatch/scripts/services/cron
  
Actual results:
 Wrong file owner (): 2 Time(s)

Expected results:
 Nothing or another error.

Additional info:
I think there is a bug in /usr/share/logwatch/scripts/services/cron, line 149:
      } elsif ( ($FileName) = ($ThisLine = /WRONG FILE OWNER \((.+)\)/) ) {

Where the = operator after ThisLine need to be replaced by =~ .
I am not a perl expert, so the error may be elsewhere.

Comment 1 Fedora Update System 2008-02-14 14:48:42 UTC
logwatch-7.3.6-14.fc8 has been submitted as an update for Fedora 8

Comment 2 Fedora Update System 2008-02-14 14:56:17 UTC
logwatch-7.3.4-11.fc7 has been submitted as an update for Fedora 7

Comment 3 Ivana Varekova 2008-02-14 14:57:07 UTC
Thanks, fixed in logwatch-7_3_6-19_fc9, logwatch-7.3.6-14.fc8,
logwatch-7.3.4-11.fc7.


Comment 4 Fedora Update System 2008-02-28 21:39:02 UTC
logwatch-7.3.4-11.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.