mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
ids-functions.pl: Check if given filename exists bevore call stat on it.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -1555,7 +1555,7 @@ sub get_ruleset_date($) {
|
||||
my $stored_rulesfile = &_get_dl_rulesfile($provider);
|
||||
|
||||
# Check if we got a file.
|
||||
if ($stored_rulesfile) {
|
||||
if (-f $stored_rulesfile) {
|
||||
# Call stat on the rulestarball.
|
||||
my $stat = stat("$stored_rulesfile");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user