packages: nagios-plugin-check_raid/check_raid - fix $s not being in scope
glen
glen at pld-linux.org
Wed Feb 24 13:59:24 CET 2010
Author: glen Date: Wed Feb 24 12:59:24 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- fix $s not being in scope
---- Files affected:
packages/nagios-plugin-check_raid:
check_raid (1.67 -> 1.68)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_raid/check_raid
diff -u packages/nagios-plugin-check_raid/check_raid:1.67 packages/nagios-plugin-check_raid/check_raid:1.68
--- packages/nagios-plugin-check_raid/check_raid:1.67 Mon Feb 8 13:43:17 2010
+++ packages/nagios-plugin-check_raid/check_raid Wed Feb 24 13:59:19 2010
@@ -966,8 +966,9 @@
foreach my $f (</proc/driver/cciss/*>) {
open my $fh, '<', $f or next;
while (<$fh>) {
- next unless (my($s) = m{^(cciss/[^:]+):});
- push(@c, "/dev/$s");
+ if (my($s) = m{^(cciss/[^:]+):}) {
+ push(@c, "/dev/$s");
+ }
}
close $fh;
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_raid/check_raid?r1=1.67&r2=1.68&f=u
More information about the pld-cvs-commit
mailing list