diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-02-09 21:31:49 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-02-09 21:31:49 -0500 |
commit | 261ad0e49a7d7b7123831d423a0a6146b0b00d94 (patch) | |
tree | 962bb884ea2173ca9400f6f4c80020cbf2b74d83 /config | |
parent | 8df5578350c3499d80159ff8c09776944d1bc8a6 (diff) | |
download | pfsense-packages-261ad0e49a7d7b7123831d423a0a6146b0b00d94.tar.gz pfsense-packages-261ad0e49a7d7b7123831d423a0a6146b0b00d94.tar.bz2 pfsense-packages-261ad0e49a7d7b7123831d423a0a6146b0b00d94.zip |
Only extract rules/ directory
Diffstat (limited to 'config')
-rw-r--r-- | config/snort/snort.inc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 1b4c5c69..0cda2ed4 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -632,13 +632,11 @@ function extract_snort_rules_md5($tmpfname) { update_all_status($static_output); } mkdir("/usr/local/etc/snort/rules/"); - $cmd = "/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C /usr/local/etc/snort/"; + $cmd = "/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C /usr/local/etc/snort/ rules/"; $handle = popen("{$cmd} 2>&1", 'r'); while(!feof($handle)) { - $buffer = fgets($handle); - update_output_window($buffer); - ob_flush(); - flush(); + $buffer = fgets($handle); + update_output_window($buffer); } pclose($handle); |