]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
ids-functions.pl: Always delete temporary file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 27 Mar 2021 11:07:13 +0000 (12:07 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Dec 2021 12:22:59 +0000 (13:22 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl

index 4f3599d3c38e19c249532367578d20d56ec61b88..27f734907a6eb343422d3401358b34d7c575b624 100644 (file)
@@ -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");
        }