From 19498fbf0aa5d795db450ac10902dfc9d3d7ceea Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Sat, 6 Sep 2014 11:42:01 -0300 Subject: Replace mwexec() by unlink_if_exists() and respect global tmp_path --- usr/local/www/interfaces_assign.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www/interfaces_assign.php') diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index 9fbd25e..0693155 100644 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -366,7 +366,7 @@ if ($_GET['act'] == "add" && (count($config['interfaces']) < count($portlist))) } /* XXX: Do not remove this. */ - mwexec("/bin/rm -f /tmp/config.cache"); + unlink_if_exists("{$g['tmp_path']}/config.cache"); write_config(); -- cgit v1.1