mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
Add patch accepted upstream with bug #341. https://github.com/oetiker/SmokePing/issues/341 PR: 267015 Approved by: rodrigo (maintainer timeout, 3 weeks)
13 lines
689 B
Perl
13 lines
689 B
Perl
--- lib/Smokeping/probes/FPingContinuous.pm.orig 2021-08-13 06:20:13 UTC
|
|
+++ lib/Smokeping/probes/FPingContinuous.pm
|
|
@@ -72,8 +72,8 @@ sub new($$$)
|
|
my $binary = join(" ", $self->binary);
|
|
my $testhost = $self->testhost;
|
|
my $return = `$binary -C 1 $testhost 2>&1`;
|
|
- $self->{enable}{S} = (`$binary -h 2>&1` =~ /\s-S\s/);
|
|
- $self->{enable}{O} = (`$binary -h 2>&1` =~ /\s-O\s/);
|
|
+ $self->{enable}{S} = (`$binary -h 2>&1` =~ /\s-S[,\s]/);
|
|
+ $self->{enable}{O} = (`$binary -h 2>&1` =~ /\s-O[,\s]/);
|
|
croak "ERROR: fping ('$binary -C 1 $testhost') could not be run: $return"
|
|
if $return =~ m/not found/;
|
|
croak "ERROR: FPing must be installed setuid root or it will not work\n"
|