From caaa718952fbb8c990049212a6d03c1f4a9f1136 Mon Sep 17 00:00:00 2001 From: Ermal Date: Sat, 26 Jan 2013 21:31:47 +0100 Subject: Do not unlink other known files that will be generated --- config/snort/snort.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/snort') diff --git a/config/snort/snort.inc b/config/snort/snort.inc index de0ac58f..9f122d7d 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -1739,7 +1739,8 @@ function snort_prepare_rule_files($snortcfg, $snortcfgdir) { $tmpfile = basename($file); if (in_array("{$snortdir}/rules/{$tmpfile}", $enabled_files)) continue; - if (basename($tmpfile, ".rules") != "custom") + if ($tmpfile != "custom.rules" && $tmpfile != $flowbit_rules_file && + $tmpfile != $snort_enforcing_rules_file) @unlink($file); } -- cgit v1.2.3