A typo in "scripts/services/exim"

Ivan Zahariev <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Hi list,

There is a typo in the variables names in "scripts/services/exim". I've
attached a patch which explains it all and also fixes it. It's also
highly recommended that "use warnings" is always enabled - this way
these typos would have been discovered long time ago.

Please let me know if you'll fix this in the sources, so that I can also
alert Debian to fix their repositories.

Thank you.
--Ivan

_______________________________________________
Logwatch-Devel mailing list
[email protected]
http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
script-services-exim.patch (text/x-patch, 820 B)
--- scripts/services/exim-orig	2010-04-30 13:53:12.000000000 +0300
+++ scripts/services/exim	2010-04-30 13:53:55.000000000 +0300
@@ -1,4 +1,5 @@
 #!/usr/bin/perl
+use warnings;
 ##########################################################################
 # $Id: exim,v 1.23 2008/06/30 23:07:51 kirk Exp $
 ##########################################################################
@@ -289,7 +290,7 @@
 }
 
 # Print server Stops/Starts
-if ($Detail >= $LvlRestart) {
+if ($Detail >= $LvlRestarts) {
    if (@Restart) {
       print "\n--- Exim Restarted ---\n";
       foreach $ThisOne (sort @Restart) {
@@ -298,7 +299,7 @@
    }
 }
 
-if ($Detail >= $LvlRestart) {
+if ($Detail >= $LvlRuns) {
    print "\n--- Queue Runners ---\n";
    # Start Queue
    $StartQueue and print "  Start queue run: $StartQueue Time(s)\n";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.