From 045a773937960edbb75ffc408d5ac31f078c3179 Mon Sep 17 00:00:00 2001 From: "felix.suarez" Date: Tue, 6 Jun 2023 09:56:16 -0500 Subject: [PATCH] Revert "$task rename" to "$file_name rename" --- pandora_server/lib/PandoraFMS/DataServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/DataServer.pm b/pandora_server/lib/PandoraFMS/DataServer.pm index a53f6859fc..52abb1c007 100644 --- a/pandora_server/lib/PandoraFMS/DataServer.pm +++ b/pandora_server/lib/PandoraFMS/DataServer.pm @@ -324,7 +324,7 @@ sub data_consumer ($$) { return; } - rename($task, $task.'_BADXML'); + rename($file_name, $file_name.'_BADXML'); pandora_event ($pa_config, "Unable to process XML data file '$task'.", 0, 0, 0, 0, 0, 'error', 0, $dbh); agent_unlock($pa_config, $agent_name); }