summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-08-15 15:41:00 +0200
committerErmal <eri@pfsense.org>2014-08-15 15:41:00 +0200
commit8bb47a4625e05ed98394d2d6baa18fc05b889cf9 (patch)
treee2308f6254d7c1668089fc11fac249c6c2fb15b7
parentbc0a452fb43ea0ec4c2b97cdebb394bcd070e7b4 (diff)
downloadpfsense-8bb47a4625e05ed98394d2d6baa18fc05b889cf9.zip
pfsense-8bb47a4625e05ed98394d2d6baa18fc05b889cf9.tar.gz
Do not show errors from trying to delete a socket or similar
-rw-r--r--etc/inc/openvpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 5b1d5ac..6ac92fa 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -903,7 +903,7 @@ function openvpn_delete($mode, & $settings) {
mwexec("/sbin/ifconfig " . escapeshellarg($devname) . " name " . escapeshellarg($tunname));
/* remove the configuration files */
- array_map('unlink', glob("{$g['varetc_path']}/openvpn/{$mode_id}.*"));
+ @array_map('unlink', glob("{$g['varetc_path']}/openvpn/{$mode_id}.*"));
}
function openvpn_cleanup_csc($common_name) {
OpenPOWER on IntegriCloud