]> git.michaelhowe.org Git - packages/n/nagios-plugins-local.git/commitdiff
Fix typo in check_configtool; release 0.16 0.16
authorMichael Howe <michael@michaelhowe.org>
Sat, 9 Dec 2017 15:02:32 +0000 (15:02 +0000)
committerMichael Howe <michael@michaelhowe.org>
Sat, 9 Dec 2017 15:02:32 +0000 (15:02 +0000)
debian/changelog
plugins/check_configtool

index e72efa848c3d1215ea3382f6120d138c9c850821..234dcce049405580d5fb9c956b1a21f5bb999ac8 100644 (file)
@@ -1,3 +1,10 @@
+nagios-plugins-local (0.16) unstable; urgency=medium
+
+  * check_configtool:
+    - fix regex (again)
+
+ -- Michael Howe <michael@michaelhowe.org>  Sat, 09 Dec 2017 15:01:59 +0000
+
 nagios-plugins-local (0.15) unstable; urgency=medium
 
   * check_md_raid:
index 1e5a3a226fdde4131f591f7287472fe9e94f234b..3eb89f85cd570382bf150bc172624583c6360b2c 100755 (executable)
@@ -37,7 +37,7 @@ unless( -d $config->repository ){
 my $cronjob_exists = 0;
 CRONTABS: foreach my $file ( glob '/etc/cron.d/*' ){
     # letters, digits, underscores and hyphens, per cron(8)
-    next unless $file =~ m{^[a-z0-9_-]+$}i;
+    next unless $file =~ m{^.*/[a-z0-9_-]+$}i;
     open( my $fh, "<", $file )
         or die "Could not open $file for reading: $!";
     while( my $line = <$fh> ){