Bug 53077

Summary: ftpd-messages script typo causes alarming message in report
Product: [Retired] Red Hat Linux Reporter: Tim Waugh <twaugh>
Component: logwatchAssignee: Elliot Lee <sopwith>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-09-04 14:37:31 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 Tim Waugh 2001-09-03 11:07:04 UTC
Description of Problem:
I get this in my logwatch mail:

 --------------------- ftpd-messages Begin ------------------------
 
User FTP Logins:
   turmoil.elk (192.168.1.7): tim - 1 Time(s)
 
exiting on signal 11: Segmentation fault:  Time(s)
 
 
 ---------------------- ftpd-messages End -------------------------

It looks funny, and I started to think that logwatch has segfaulted or 
something.  No 'segmentation fault' is in any of my log files.  It's a 
false alarm.

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

How Reproducible:
100%

Steps to Reproduce:
1. Use the ftp server of a machine running logwatch.
2. Wait for logwatch to notice.

Actual Results:
Alarming messages in your mailbox.

Expected Results:
Useful report of FTP server usage. :-)

Additional Information:
It's caused by a typo in /etc/log.d/scripts/services/ftpd-messages, line 
150.  Suggested fix:

-if ($SegFault >= 0){
+if ($SegFault > 0){