diff options
author | Ermal <eri@pfsense.org> | 2012-07-14 21:27:17 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-14 21:27:17 +0000 |
commit | 26194417fc07162490296c326fa8590f578028ae (patch) | |
tree | 77d3daaac71bcedbef96f850ea801379bcb499bb | |
parent | a368d93cd9d13cef90fdaf505130106b151860ca (diff) | |
download | pfsense-packages-26194417fc07162490296c326fa8590f578028ae.tar.gz pfsense-packages-26194417fc07162490296c326fa8590f578028ae.tar.bz2 pfsense-packages-26194417fc07162490296c326fa8590f578028ae.zip |
Correct so rules file name so it shows up on the gui properly
-rw-r--r-- | config/snort/snort_check_for_rule_updates.php | 4 |
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"); |