aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-26 21:31:47 +0100
committerErmal <eri@pfsense.org>2013-01-26 21:31:47 +0100
commitcaaa718952fbb8c990049212a6d03c1f4a9f1136 (patch)
tree283f4318e319f2844d376f97d441339aa87c90a0 /config
parent159f7aa6503168db8f0f8541312e55e1f67a8ee6 (diff)
downloadpfsense-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')
-rwxr-xr-xconfig/snort/snort.inc3
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);
}