[First sent to the old list address again...]
Hi,
attached is a patch submitted by a Debian user for the exim script.
Please consider to apply it if you find it appropriate.
thanks
WM
-------- Original Message --------
Subject: Bug#712655: logwatch: uninitialized values in exim script with
empty log file
Resent-Date: Tue, 18 Jun 2013 10:48:01 +0000
Resent-From: Teemu Ikonen <[email protected]>
Resent-To: [email protected]
Resent-CC: [email protected], Willi Mann <[email protected]>
Date: Tue, 18 Jun 2013 12:45:07 +0200
From: Teemu Ikonen <[email protected]>
Reply-To: Teemu Ikonen <[email protected]>, [email protected]
To: Debian Bug Tracking System <[email protected]>
Package: logwatch
Version: 7.4.0+svn20130529rev144-1
Severity: normal
Tags: patch
Logwatch reports contain perl error output from exim script, when ran
with an almost empty exim log file (this can happen when exim is removed
soon after installation):
--------------------- EXIM Begin ------------------------
Use of uninitialized value $StartQueue in numeric gt (>) at
/usr/share/logwatch
/scripts/services/exim line 312, <STDIN> line 1.
Use of uninitialized value $EndQueue in numeric gt (>) at
/usr/share/logwatch/s
cripts/services/exim line 312, <STDIN> line 1.
---------------------- EXIM End -------------------------
The attached patch fixes this.
Best,
Teemu
--- exim.orig-new 2013-06-18 12:23:04.004707191 +0200
+++ exim 2013-06-18 12:05:45.799181443 +0200
@@ -114,6 +114,8 @@
# START
my $SearchDate = TimeFilter("%Y-%m-%d %H:%M:%S");
+$StartQueue = 0;
+$EndQueue = 0;
while (defined($ThisLine = <STDIN>)) {
chomp($ThisLine);