zz-disk_space patch

Ivana Varekova <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Hello,
I just fix one zz-disk_script problem, so I'm sending a patch for it 
(The bug description is on 
https://bugzilla.redhat.com/show_bug.cgi?id=474810).
Ivana Varekova

_______________________________________________
Logwatch-Devel mailing list
[email protected]
http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
logwatch-7.3.6-zz-disk_space2.patch (text/x-patch, 747 B)
diff -up logwatch-7.3.6/scripts/services/zz-disk_space.pom logwatch-7.3.6/scripts/services/zz-disk_space
--- logwatch-7.3.6/scripts/services/zz-disk_space.pom	2008-11-13 12:42:45.000000000 +0100
+++ logwatch-7.3.6/scripts/services/zz-disk_space	2008-12-08 13:23:28.000000000 +0100
@@ -169,7 +169,8 @@ sub DiskFull
      my @fields = split(' ', $row);
      my $use = $fields[4];
      $use =~ s/%//;
-     if (($use > $diskfull_threshhold) && ($fields[0] !~ /\/dev\/scd/ ) && ($fields[0] !~ /\/dev\/sr/ ))
+     if (($use > $diskfull_threshhold) && ($fields[0] !~ /\/dev\/scd/ ) && ($fields[0] !~ /\/dev\/sr/ )
+        && ($fields[0] !~ /\/dev\/loop./))
      {
        print "$fields[0] => $fields[4] Used. Warning. Disk Filling up.\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.