aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-18 21:56:11 +0000
committerErmal <eri@pfsense.org>2012-07-18 21:56:11 +0000
commitbe53dd2aa5f320b7e2d4964f5779366a5b20c3b5 (patch)
tree4eea2252489cfae9e97779872c15148364c5225e /config/snort/snort.inc
parent97e40815938fbedd6a0d3018d7a0405ee1a161d7 (diff)
downloadpfsense-packages-be53dd2aa5f320b7e2d4964f5779366a5b20c3b5.tar.gz
pfsense-packages-be53dd2aa5f320b7e2d4964f5779366a5b20c3b5.tar.bz2
pfsense-packages-be53dd2aa5f320b7e2d4964f5779366a5b20c3b5.zip
No need to check twice
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r--config/snort/snort.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 7a89e694..a1d5a1de 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -1302,13 +1302,11 @@ EOD;
$snort_misc_include_rules .= "include \$PREPROC_RULE_PATH/sensitive-data.rules\n";
} else
$sedcmd = "s/^alert\(.*\)classtype:sdf;\(.*\)/# alert\1classtype:sdf\2/g";
- if (file_exists("{$snortdir}/preproc_rules/decoder.rules") &&
- file_exists("{$snortdir}/preproc_rules/preprocessor.rules")) {
+ if (file_exists("{$snortcfgdir}/preproc_rules/decoder.rules") &&
+ file_exists("{$snortcfgdir}/preproc_rules/preprocessor.rules")) {
@file_put_contents("{$g['tmp_path']}/sedcmd", $sedcmd);
- if (file_exists("{$snortcfgdir}/preproc_rules/preprocessor.rules"))
- mwexec("/usr/bin/sed -I '' -e -f {$g['tmp_path']}/sedcmd {$snortcfgdir}/preproc_rules/preprocessor.rules");
- if (file_exists("{$snortcfgdir}/preproc_rules/decoder.rules"))
- mwexec("/usr/bin/sed -I '' -e -f {$g['tmp_path']}/sedcmd {$snortcfgdir}/preproc_rules/decoder.rules");
+ mwexec("/usr/bin/sed -I '' -e -f {$g['tmp_path']}/sedcmd {$snortcfgdir}/preproc_rules/preprocessor.rules");
+ mwexec("/usr/bin/sed -I '' -e -f {$g['tmp_path']}/sedcmd {$snortcfgdir}/preproc_rules/decoder.rules");
@unlink("{$g['tmp_path']}/sedcmd");
$snort_misc_include_rules .= "include \$PREPROC_RULE_PATH/decoder.rules\n";