]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
Fix check_afs_space bug when run against entire server
authorRuss Allbery <rra@stanford.edu>
Wed, 8 Dec 2010 19:31:01 +0000 (11:31 -0800)
committerRuss Allbery <rra@stanford.edu>
Wed, 8 Dec 2010 19:31:01 +0000 (11:31 -0800)
Fix a bug in check_afs_space introduced in the previous release with
checking all partitions on a particular server.

NEWS
check_afs_space

diff --git a/NEWS b/NEWS
index 66e8f578fa9c94f8ac8664a25ceb49e9b8f32bcc..47ba9623dce9a2bf243c232810b8fdbcde88ed51 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,10 @@
                      User-Visible afs-monitor Changes
 
+afs-monitor 2.1 (unreleased)
+
+    Fix a bug in check_afs_space introduced in the previous release with
+    checking all partitions on a particular server.
+
 afs-monitor 2.0 (2010-12-07)
 
     Initial tarball release, based on check_afsspace 1.16, check_bos 1.7,
index 1b602aa935aa5099460c13a91aa2ed389a6da315..afc9e02711c62733d012a2999f24817ff1e49677 100755 (executable)
@@ -112,7 +112,7 @@ if ($? != 0) {
     print "AFS CRITICAL - cannot contact server\n";
     exit 2;
 }
-$partition .= ':';
+$partition .= ':' if defined $partition;
 for (@data) {
     my ($part, $free, $total) = (split)[4,5,11];
     next if (defined ($partition) and $part ne $partition);