mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 04:05:53 +02:00
ids-functions.pl: Only read providers used rulefiles file if it exists.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user