From: Stefan Schantl Date: Sat, 27 Mar 2021 11:07:13 +0000 (+0100) Subject: ids-functions.pl: Always delete temporary file. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=580e629e3ad102da8bc983418ae0c4cdab01ff90;p=people%2Fstevee%2Fipfire-2.x.git ids-functions.pl: Always delete temporary file. Signed-off-by: Stefan Schantl --- 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"); }