From 938ebb6de7f96334d9d08e345a7874c416df7882 Mon Sep 17 00:00:00 2001 From: alejandro Date: Thu, 22 Sep 2022 12:39:45 +0200 Subject: [PATCH] changed single quotes to double quotes in the variable of the transfer_xml function of plugintools, to fix a bug, which prevented sending the file --- pandora_server/lib/PandoraFMS/PluginTools.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/PluginTools.pm b/pandora_server/lib/PandoraFMS/PluginTools.pm index eab919a7d3..a69c311ae0 100644 --- a/pandora_server/lib/PandoraFMS/PluginTools.pm +++ b/pandora_server/lib/PandoraFMS/PluginTools.pm @@ -869,11 +869,11 @@ sub transfer_xml { my $r = -1; #Send using tentacle if ($^O =~ /win/i) { - $msg = `$conf->{tentacle_client} -v -a $conf->{tentacle_ip} -p $conf->{tentacle_port} $conf->{tentacle_opts} '$file_path'`; + $msg = `$conf->{tentacle_client} -v -a $conf->{tentacle_ip} -p $conf->{tentacle_port} $conf->{tentacle_opts} "$file_path"`; $r = $?; } else { - $msg = `$conf->{tentacle_client} -v -a $conf->{tentacle_ip} -p $conf->{tentacle_port} $conf->{tentacle_opts} '$file_path' 2>&1`; + $msg = `$conf->{tentacle_client} -v -a $conf->{tentacle_ip} -p $conf->{tentacle_port} $conf->{tentacle_opts} "$file_path" 2>&1`; $r = $?; }