Quote the fping binary before calling it.

This commit is contained in:
Ramon Novoa 2018-10-30 13:23:01 +01:00
parent 6353af0482
commit a142a32349
1 changed files with 1 additions and 1 deletions

View File

@ -1293,7 +1293,7 @@ sub scan_subnet($) {
if (-x $self->{'fping'} && $net_addr->num() > 1) {
$self->call('message', "Calling fping...", 5);
my @hosts = `$self->{'fping'} -ga "$subnet" 2>DEVNULL`;
my @hosts = `"$self->{'fping'}" -ga "$subnet" 2>DEVNULL`;
next if (scalar(@hosts) == 0);
my $step = 50.0 / scalar(@subnets) / scalar(@hosts); # The first 50% of the recon task approx.