From cad087c74efe8e45d0a8b24365beaa868d1a2913 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 2 Jan 2022 09:49:37 +0100 Subject: [PATCH] ids-functions.pl: Check if given filename exists bevore call stat on it. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 97bf4d08be..e140fb13d2 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -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"); -- 2.39.5