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:
Stefan Schantl
2022-01-02 09:49:37 +01:00
parent dffce1e270
commit cad087c74e

View File

@@ -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");