From 82050d908e18016a65a9573fcfb8025d4bca4bcf Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Thu, 10 May 2007 19:32:57 +0000 Subject: fix Curl usage regexp that would match webpage contents too easily https://bugs.launchpad.net/ubuntu/+bug/73437 hopefully this is just a temporary fix until we start checking the return code instead --- lib/Smokeping/probes/Curl.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Smokeping/probes') diff --git a/lib/Smokeping/probes/Curl.pm b/lib/Smokeping/probes/Curl.pm index 5f237ab..cbf7d54 100644 --- a/lib/Smokeping/probes/Curl.pm +++ b/lib/Smokeping/probes/Curl.pm @@ -204,7 +204,7 @@ sub test_usage { my %arghash = %$arghashref; for my $feature (keys %arghash) { - if (`$bin $arghash{$feature} 1 127.0.0.1 2>&1` =~ /invalid option|usage/i) { + if (`$bin $arghash{$feature} 1 127.0.0.1 2>&1` =~ /invalid (option|usage)/i) { push @unsupported, $feature; $self->do_log("Note: your curl doesn't support the $feature feature (option $arghash{$feature}), disabling it"); } -- cgit v1.2.3-24-g4f1b