diff options
author | Niko Tyni <ntyni@iki.fi> | 2007-05-10 21:32:57 +0200 |
---|---|---|
committer | Niko Tyni <ntyni@iki.fi> | 2007-05-10 21:32:57 +0200 |
commit | 82050d908e18016a65a9573fcfb8025d4bca4bcf (patch) | |
tree | 61f9ea80bfbc1a6adb0cba2c6c494b3482d35f51 /lib/Smokeping | |
parent | bac139a24caca3f26a55968b4f9a9db333411ce5 (diff) | |
download | smokeping-82050d908e18016a65a9573fcfb8025d4bca4bcf.tar.gz smokeping-82050d908e18016a65a9573fcfb8025d4bca4bcf.tar.xz |
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
Diffstat (limited to 'lib/Smokeping')
-rw-r--r-- | lib/Smokeping/probes/Curl.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |