From 25c69a74f328ced4e3b97e9cf9b61dace9742611 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 2 Apr 2021 13:47:36 +0200 Subject: [PATCH] ids-functions.pl: Only read providers used rulefiles file if it exists. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index f95a02ddd4..7a36615404 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -1694,8 +1694,8 @@ sub read_used_provider_rulesfiles($) { # Get the used rulesefile file for the provider. my $rulesfile_file = &get_used_provider_rulesfile_file($provider); - # Check if the used rulesfile is empty. - unless (-z $rulesfile_file) { + # Check if the a used rulesfile exists for this provider. + if (-f $rulesfile_file) { # Open the file or used rulefiles and read-in content. open(FILE, $rulesfile_file) or die "Could not open $rulesfile_file. $!\n"; -- 2.39.5