diff options
author | Ermal <eri@pfsense.org> | 2012-07-18 21:43:55 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-18 21:43:55 +0000 |
commit | fb9000df2131ee7ed51e99fbac7a8d9a2d7a5065 (patch) | |
tree | dc6f36146e86e37cc6a7920e4fc690853082231b | |
parent | a8ffebefc77fe8fa8cdee0c82631e02d6d4913c6 (diff) | |
download | pfsense-packages-fb9000df2131ee7ed51e99fbac7a8d9a2d7a5065.tar.gz pfsense-packages-fb9000df2131ee7ed51e99fbac7a8d9a2d7a5065.tar.bz2 pfsense-packages-fb9000df2131ee7ed51e99fbac7a8d9a2d7a5065.zip |
Make the sed command consistent with the update code
-rw-r--r-- | config/snort/snort.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 59984978..7a89e694 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("{$g['tmp_path']}/sedcmd", $sedcmd); if (file_exists("{$snortcfgdir}/preproc_rules/preprocessor.rules")) - mwexec("/usr/bin/sed -Ie -f {$g['tmp_path']}/sedcmd {$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 -Ie -f {$g['tmp_path']}/sedcmd {$snortcfgdir}/preproc_rules/decoder.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"; |