From ffe47e58b606d00e2c7d54e5751b5500595035ef Mon Sep 17 00:00:00 2001 From: Michael Howe Date: Sat, 9 Dec 2017 15:02:32 +0000 Subject: [PATCH] Fix typo in check_configtool; release 0.16 --- debian/changelog | 7 +++++++ plugins/check_configtool | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index e72efa8..234dcce 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +nagios-plugins-local (0.16) unstable; urgency=medium + + * check_configtool: + - fix regex (again) + + -- Michael Howe Sat, 09 Dec 2017 15:01:59 +0000 + nagios-plugins-local (0.15) unstable; urgency=medium * check_md_raid: diff --git a/plugins/check_configtool b/plugins/check_configtool index 1e5a3a2..3eb89f8 100755 --- a/plugins/check_configtool +++ b/plugins/check_configtool @@ -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> ){ -- 2.39.5