mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
ids-functions.pl: Always delete temporary file.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user