aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-18 10:40:00 +0000
committerErmal <eri@pfsense.org>2012-07-18 10:40:00 +0000
commitebe8cc0d2a18e17426f67f7a481f2207fbab1806 (patch)
tree95357c138fc42857f16e6977d7e63aff1563e944
parent17dfd4863c52662d562fd177968131a2287cbf17 (diff)
downloadpfsense-packages-ebe8cc0d2a18e17426f67f7a481f2207fbab1806.tar.gz
pfsense-packages-ebe8cc0d2a18e17426f67f7a481f2207fbab1806.tar.bz2
pfsense-packages-ebe8cc0d2a18e17426f67f7a481f2207fbab1806.zip
Correct sed command
-rw-r--r--config/snort/snort.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index d09b622e..6bc15017 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -1306,9 +1306,9 @@ EOD;
file_exists("{$snortdir}/preproc_rules/preprocessor.rules")) {
@file_put_contents("{$snortcfgdir}/tmp/sedcmd", $sedcmd);
if (file_exists("{$snortcfgdir}/preproc_rules/preprocessor.rules"))
- mwexec("/usr/bin/sed -Ie -f '{$sedcmd}' {$snortcfgdir}/preproc_rules/preprocessor.rules");
+ mwexec("/usr/bin/sed -Ie -f {$snortcfgdir}/tmp/sedcmd {$snortcfgdir}/preproc_rules/preprocessor.rules");
if (file_exists("{$snortcfgdir}/preproc_rules/decoder.rules"))
- mwexec("/usr/bin/sed -Ie -f '{$sedcmd}' {$snortcfgdir}/preproc_rules/decoder.rules");
+ mwexec("/usr/bin/sed -Ie -f {$snortcfgdir}/tmp/sedcmd {$snortcfgdir}/preproc_rules/decoder.rules");
$snort_misc_include_rules .= "include \$PREPROC_RULE_PATH/decoder.rules\n";
$snort_misc_include_rules .= "include \$PREPROC_RULE_PATH/preprocessor.rules\n";