diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-09-06 11:42:01 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-09-08 17:24:55 -0300 |
commit | 19498fbf0aa5d795db450ac10902dfc9d3d7ceea (patch) | |
tree | bb03175e535971ba32412808f710d06ba56e51d5 /usr | |
parent | 1b0e073e2a32e577335b4d150c063221e8cac637 (diff) | |
download | pfsense-19498fbf0aa5d795db450ac10902dfc9d3d7ceea.zip pfsense-19498fbf0aa5d795db450ac10902dfc9d3d7ceea.tar.gz |
Replace mwexec() by unlink_if_exists() and respect global tmp_path
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/interfaces_assign.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |