diff options
author | Ermal <eri@pfsense.org> | 2013-01-26 21:31:47 +0100 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-26 21:31:47 +0100 |
commit | caaa718952fbb8c990049212a6d03c1f4a9f1136 (patch) | |
tree | 283f4318e319f2844d376f97d441339aa87c90a0 /config/snort/snort.inc | |
parent | 159f7aa6503168db8f0f8541312e55e1f67a8ee6 (diff) | |
download | pfsense-packages-caaa718952fbb8c990049212a6d03c1f4a9f1136.tar.gz pfsense-packages-caaa718952fbb8c990049212a6d03c1f4a9f1136.tar.bz2 pfsense-packages-caaa718952fbb8c990049212a6d03c1f4a9f1136.zip |
Do not unlink other known files that will be generated
Diffstat (limited to 'config/snort/snort.inc')
-rwxr-xr-x | config/snort/snort.inc | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |