From 7ccea46172415ff6ae5de3653e6cb841bbd9c8b2 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 3 Dec 2021 15:53:20 +0100 Subject: [PATCH] ids-functions.pl: Remove config files when cleaning up the rules directory. If there are one, they safly can be removed because the *.config files now live in a different folder. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 3 --- 1 file changed, 3 deletions(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index fffb0a265d..2869bcdc44 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -1139,9 +1139,6 @@ sub _cleanup_rulesdir() { # We only want files. next unless (-f "$rulespath/$file"); - # Skip element if it has config as file extension. - next if ($file =~ m/\.config$/); - # Skip rules file for whitelisted hosts. next if ("$rulespath/$file" eq $whitelist_file); -- 2.39.5