From ae22613224bcdb93454b3035e2a8f48ee40d147f Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 27 Mar 2021 12:07:13 +0100 Subject: [PATCH] ids-functions.pl: Always delete temporary file. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 4f3599d3c3..27f734907a 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -391,6 +391,9 @@ sub downloadruleset ($) { # Overwrite the may existing rulefile or tarball with the downloaded one. move("$tmpfile", "$dl_rulesfile"); + # Delete temporary file. + unlink("$tmpfile"); + # Set correct ownership for the tarball. set_ownership("$dl_rulesfile"); } -- 2.39.5