aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_interfaces.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-20 17:46:01 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-15 12:04:36 -0500
commitb1d0505eef8c0d30e20adb2d514f7f135acc5e9d (patch)
tree60985ac2e147213240d7caeab373394e148ea21d /config/suricata/suricata_interfaces.php
parent0e9009d3aa39885e03b826a263e0fc2047e324a7 (diff)
downloadpfsense-packages-b1d0505eef8c0d30e20adb2d514f7f135acc5e9d.tar.gz
pfsense-packages-b1d0505eef8c0d30e20adb2d514f7f135acc5e9d.tar.bz2
pfsense-packages-b1d0505eef8c0d30e20adb2d514f7f135acc5e9d.zip
Replace '/bin/rm' calls with rmdir_recursive() function.
Diffstat (limited to 'config/suricata/suricata_interfaces.php')
-rw-r--r--config/suricata/suricata_interfaces.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/suricata/suricata_interfaces.php b/config/suricata/suricata_interfaces.php
index 3d093d45..5a6a58c2 100644
--- a/config/suricata/suricata_interfaces.php
+++ b/config/suricata/suricata_interfaces.php
@@ -68,8 +68,8 @@ if ($_POST['del_x']) {
$if_real = get_real_interface($a_nat[$rulei]['interface']);
$suricata_uuid = $a_nat[$rulei]['uuid'];
suricata_stop($a_nat[$rulei], $if_real);
- exec("/bin/rm -r {$suricatalogdir}suricata_{$if_real}{$suricata_uuid}");
- exec("/bin/rm -r {$suricatadir}suricata_{$suricata_uuid}_{$if_real}");
+ rmdir_recursive("{$suricatalogdir}suricata_{$if_real}{$suricata_uuid}");
+ rmdir_recursive("{$suricatadir}suricata_{$suricata_uuid}_{$if_real}");
unset($a_nat[$rulei]);
}
conf_mount_ro();