Bug: exim script variables StartQueue and EndQueue are not initialized
Sean Alexandre <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <20131120161300.GA20855@tuzo> |
==== Debian package: logwatch
==== Version: 7.4.0+svn20120502rev103-1
==== Problem:
The variables StartQueue and EndQueue in /usr/share/logwatch/scripts/services/exim
are not initialized, causing logwatch to report:
Use of uninitialized value $StartQueue in numeric gt (>) at /usr/share/logwatch/scripts/services/exim line 309.
Use of uninitialized value $EndQueue in numeric gt (>) at /usr/share/logwatch/scripts/services/exim line 309.
==== Fix:
Initialize StartQueue and EndQueue before use. Here's the diff:
Here's the diff:
diff --git a/scripts/services/exim b/scripts/services/exim
--- a/scripts/services/exim
+++ b/scripts/services/exim
@@ -115,6 +115,9 @@ sub wedlug_liczb {
my $SearchDate = TimeFilter("%Y-%m-%d %H:%M:%S");
+$StartQueue = 0;
+$EndQueue = 0;
+
while (defined($ThisLine = <STDIN>)) {
chomp($ThisLine);
# pobierz dzisiejsza date z 2002-03-31 22:13:48 ...
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk