aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces_edit.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-01-13 10:51:45 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-01-13 10:51:45 -0500
commitaf4460ff3f18dff763e0a493ac71be37dd814435 (patch)
tree357bc9cf44654cf1ac366e9244f28d2b8a014b9f /config/snort/snort_interfaces_edit.php
parent8e3a6c43552fa36df9dd19a0dd0db312add43d11 (diff)
downloadpfsense-packages-af4460ff3f18dff763e0a493ac71be37dd814435.tar.gz
pfsense-packages-af4460ff3f18dff763e0a493ac71be37dd814435.tar.bz2
pfsense-packages-af4460ff3f18dff763e0a493ac71be37dd814435.zip
Incorporate Ermal's comments -- use conf_mount_rw() only where needed.
Diffstat (limited to 'config/snort/snort_interfaces_edit.php')
-rwxr-xr-xconfig/snort/snort_interfaces_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php
index 0a99e60a..72aa82e2 100755
--- a/config/snort/snort_interfaces_edit.php
+++ b/config/snort/snort_interfaces_edit.php
@@ -150,8 +150,8 @@ if ($_POST["Submit"]) {
if ($natent['interface'] != $a_rule[$id]['interface']) {
$oif_real = snort_get_real_interface($a_rule[$id]['interface']);
snort_stop($a_rule[$id], $oif_real);
- conf_mount_rw();
exec("rm -r /var/log/snort_{$oif_real}" . $a_rule[$id]['uuid']);
+ conf_mount_rw();
exec("mv -f {$snortdir}/snort_" . $a_rule[$id]['uuid'] . "_{$oif_real} {$snortdir}/snort_" . $a_rule[$id]['uuid'] . "_{$if_real}");
conf_mount_ro();
}