diff options
author | Ermal <eri@pfsense.org> | 2012-07-13 05:10:12 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-13 05:10:12 +0000 |
commit | 119732ffe8f773538adc2fd5db74a004a4afe3f2 (patch) | |
tree | 10646062077c97c7cfea62173978e188170d0eed /config/snort/snort_check_for_rule_updates.php | |
parent | 80167e60d36acd613a083bbea6e2fbfd5f180f89 (diff) | |
download | pfsense-packages-119732ffe8f773538adc2fd5db74a004a4afe3f2.tar.gz pfsense-packages-119732ffe8f773538adc2fd5db74a004a4afe3f2.tar.bz2 pfsense-packages-119732ffe8f773538adc2fd5db74a004a4afe3f2.zip |
Rather than unlinking/writing to a file opened by snort. Truncate it.
Diffstat (limited to 'config/snort/snort_check_for_rule_updates.php')
-rw-r--r-- | config/snort/snort_check_for_rule_updates.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index 3871b813..2b6d678a 100644 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -356,7 +356,7 @@ function oinkmaster_run($if_real, $iface_uuid) global $config, $g, $snortdir; if (empty($config['installedpackages']['snortglobal']['rule'][$id]['rule_sid_on']) && empty($config['installedpackages']['snortglobal']['rule'][$id]['rule_sid_off'])) { - update_status(gettext("Your first set of rules are being copied...")); + update_status(gettext("Your set of rules are being copied...")); exec("/bin/cp {$snortdir}/rules/* {$snortdir}/snort_{$iface_uuid}_{$if_real}/rules/"); exec("/bin/cp {$snortdir}/classification.config {$snortdir}/snort_{$iface_uuid}_{$if_real}"); exec("/bin/cp {$snortdir}/gen-msg.map {$snortdir}/snort_{$iface_uuid}_{$if_real}"); |