mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +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.
|
# Overwrite the may existing rulefile or tarball with the downloaded one.
|
||||||
move("$tmpfile", "$dl_rulesfile");
|
move("$tmpfile", "$dl_rulesfile");
|
||||||
|
|
||||||
|
# Delete temporary file.
|
||||||
|
unlink("$tmpfile");
|
||||||
|
|
||||||
# Set correct ownership for the tarball.
|
# Set correct ownership for the tarball.
|
||||||
set_ownership("$dl_rulesfile");
|
set_ownership("$dl_rulesfile");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user