]> git.michaelhowe.org Git - packages/n/nagios-plugins-local.git/commitdiff
Fix regex in check_configtool, release non-test version 0.15
authorMichael Howe <michael@michaelhowe.org>
Sat, 9 Dec 2017 12:24:15 +0000 (12:24 +0000)
committerMichael Howe <michael@michaelhowe.org>
Sat, 9 Dec 2017 12:24:15 +0000 (12:24 +0000)
The regex wasn't anchored, so wasn't being very helpful.

debian/changelog
plugins/check_configtool

index 7bd471b893b80bd110a97ce92b801e36842be533..e72efa848c3d1215ea3382f6120d138c9c850821 100644 (file)
@@ -1,11 +1,13 @@
-nagios-plugins-local (0.15~test.1) UNRELEASED; urgency=medium
+nagios-plugins-local (0.15) unstable; urgency=medium
 
   * check_md_raid:
     - strip trailing spaces from mdadm state 
   * nagios-plugins-local-client:
     - new plugin: check_monit
+  * check_configtool:
+    - fix regex looking for configtool cronjobs
 
- -- Michael Howe <michael.howe@it.ox.ac.uk>  Wed, 06 Sep 2017 19:00:00 +0100
+ -- Michael Howe <michael@michaelhowe.org>  Sat, 09 Dec 2017 12:23:39 +0000
 
 nagios-plugins-local (0.14) unstable; urgency=low
 
index 76a9ffe972aeeec385592d29528421c6b3137451..1e5a3a226fdde4131f591f7287472fe9e94f234b 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> ){