aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-07-09 12:57:00 -0400
committerjim-p <jimp@pfsense.org>2012-07-09 12:57:00 -0400
commit958efd439784459a5848fb05afe1560c4db285d7 (patch)
tree1e836cb827156bba4cc12ad37fc21294f138e7f8 /config/snort/snort_interfaces.php
parent4e8dd82f957006899f1babb2e521b8fd3cdcd2ce (diff)
downloadpfsense-packages-958efd439784459a5848fb05afe1560c4db285d7.tar.gz
pfsense-packages-958efd439784459a5848fb05afe1560c4db285d7.tar.bz2
pfsense-packages-958efd439784459a5848fb05afe1560c4db285d7.zip
globals for these do not work properly at bootup. Might be causing unintended overwrites/deletions. Revert "s//usr/local/etc/snort/snortdir/ to unify its reference and location. Trim some unused functions in the way"
This reverts commit 40cace16a452cd841a6b3626c44ff0d0b655956f.
Diffstat (limited to 'config/snort/snort_interfaces.php')
-rw-r--r--config/snort/snort_interfaces.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php
index 0d3ee8c1..93b0050d 100644
--- a/config/snort/snort_interfaces.php
+++ b/config/snort/snort_interfaces.php
@@ -35,7 +35,7 @@ require_once("guiconfig.inc");
require_once("/usr/local/pkg/snort/snort_gui.inc");
require_once("/usr/local/pkg/snort/snort.inc");
-global $g, $snortdir;
+global $g;
$id = $_GET['id'];
if (isset($_POST['id']))
@@ -58,7 +58,7 @@ if (isset($_POST['del_x'])) {
Running_Stop($snort_uuid,$if_real, $rulei);
exec("/bin/rm -r /var/log/snort/snort_{$if_real}{$snort_uuid}");
- exec("/bin/rm -r {$snortdir}/snort_{$snort_uuid}_{$if_real}");
+ exec("/bin/rm -r /usr/local/etc/snort/snort_{$snort_uuid}_{$if_real}");
unset($a_nat[$rulei]);
}