aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-17 15:48:17 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-09-17 15:48:17 -0400
commitf7f5c7bb21c94f6be6b36202a8fa301d86a66406 (patch)
treefc1909dc510d5ab95880e6050d06b3ea2b444bfc /config/snort/snort_interfaces.php
parent69e99bed09652ef93607cc353cafcc99d7e54b2e (diff)
downloadpfsense-packages-f7f5c7bb21c94f6be6b36202a8fa301d86a66406.tar.gz
pfsense-packages-f7f5c7bb21c94f6be6b36202a8fa301d86a66406.tar.bz2
pfsense-packages-f7f5c7bb21c94f6be6b36202a8fa301d86a66406.zip
Replace exec() calls with system calls and also use unlink_if_exists().
Diffstat (limited to 'config/snort/snort_interfaces.php')
-rwxr-xr-xconfig/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 7903eba7..5e0830c3 100755
--- a/config/snort/snort_interfaces.php
+++ b/config/snort/snort_interfaces.php
@@ -68,8 +68,8 @@ if (isset($_POST['del_x'])) {
}
}
snort_stop($a_nat[$rulei], $if_real);
- exec("/bin/rm -r {$snortlogdir}/snort_{$if_real}{$snort_uuid}");
- exec("/bin/rm -r {$snortdir}/snort_{$snort_uuid}_{$if_real}");
+ rmdir_recursive("{$snortlogdir}/snort_{$if_real}{$snort_uuid}");
+ rmdir_recursive("{$snortdir}/snort_{$snort_uuid}_{$if_real}");
// Finally delete the interface's config entry entirely
unset($a_nat[$rulei]);