From 8d733398875d6cf83ba441b74eaa8fb42214c9f8 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 28 Apr 2020 10:37:09 +0200 Subject: [PATCH] Windows environment spaces in binary file names --- pandora_server/lib/PandoraFMS/Tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/Tools.pm b/pandora_server/lib/PandoraFMS/Tools.pm index 10f57b1e15..c3182f9d41 100755 --- a/pandora_server/lib/PandoraFMS/Tools.pm +++ b/pandora_server/lib/PandoraFMS/Tools.pm @@ -1458,7 +1458,7 @@ sub pandora_block_ping($@) { if (-x $pa_config->{'fping'}) { # fping timeout in milliseconds - $cmd = $pa_config->{'fping'} . " -a -q -t " . (1000 * $pa_config->{'networktimeout'}) . " " . (join (' ', @hosts)); + $cmd = '"'.$pa_config->{'fping'} . '" -a -q -t ' . (1000 * $pa_config->{'networktimeout'}) . " " . (join (' ', @hosts)); @output = `$cmd 2>$DEVNULL`; } else { # Ping scan