aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-02-09 19:12:53 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-02-09 19:12:53 -0500
commitff63238155a009eeb6e1a2a298a55b2875857b82 (patch)
tree5e23936cd114b6d770d89944c9b7051bc39816d0 /config
parent834c44906bd92fffd4a1c969ddf58957f40ea0ee (diff)
downloadpfsense-packages-ff63238155a009eeb6e1a2a298a55b2875857b82.tar.gz
pfsense-packages-ff63238155a009eeb6e1a2a298a55b2875857b82.tar.bz2
pfsense-packages-ff63238155a009eeb6e1a2a298a55b2875857b82.zip
Use exec()
Diffstat (limited to 'config')
-rw-r--r--config/snort/snort.inc9
1 files changed, 1 insertions, 8 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index d8826ea9..5c70783b 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -633,14 +633,7 @@ function extract_snort_rules_md5($tmpfname) {
}
mkdir("/usr/local/etc/snort/rules/");
$cmd = "/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C /usr/local/etc/snort/rules/";
- /* extract item and show status during extraction */
- $handle = popen('$cmd 2>&1', 'r');
- while(!feof($handle)) {
- $read .= fread($handle, 100);
- update_output_window($read);
- flush();
- }
- pclose($handle);
+ exec($cmd);
if(!$console_mode) {
$static_output = gettext("Snort rules extracted.");
update_all_status($static_output);