diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 4f3599d3c..27f734907 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"); }