aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/snort/snort_check_for_rule_updates.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index cc0e31af..1062bd82 100644
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -204,8 +204,8 @@ if ($snortdownload == 'on') {
exec("/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C {$snortdir}/tmp so_rules/");
$files = glob("{$snortdir}/tmp/so_rules/*.rules");
foreach ($files as $file) {
- $newfile = basename($file);
- @copy($file, "{$snortdir}/rules/snort_{$newfile}");
+ $newfile = basename($file, ".rules");
+ @copy($file, "{$snortdir}/rules/snort_{$newfile}.so.rules");
}
@unlink("{$snortdir}/tmp/so_rules");