Your message dated Tue, 18 Jun 2013 13:24:31 +0200
with message-id <[email protected]>
has caused the report #712655,
regarding logwatch: uninitialized values in exim script with empty log file
to be marked as having been forwarded to the upstream software
author(s) L-logwatch-devel <[email protected]>
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
712655: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712655
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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);
--- End Message ---