summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-21 09:45:23 +0000
committerErmal <eri@pfsense.org>2012-11-21 09:45:51 +0000
commit10c7d6421dcab3252a54c12d36006de180da06d8 (patch)
treef69099015e4391979874cecf4d441841cfc2bee8 /etc/inc/openvpn.inc
parentef363bc4c6ba204fd46dc47ce105cafbce83d075 (diff)
downloadpfsense-10c7d6421dcab3252a54c12d36006de180da06d8.zip
pfsense-10c7d6421dcab3252a54c12d36006de180da06d8.tar.gz
Unbreak the openvpn reading of configs. A dir needs to be executable to be searchable and readble inside. Reported-by: http://forum.pfsense.org/index.php/topic,55934.0/topicseen.html
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 38fb269..af7296c 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -655,9 +655,9 @@ function openvpn_reconfigure($mode, $settings) {
openvpn_add_custom($settings, $conf);
if (!is_dir("{$g['varetc_path']}/openvpn"))
- safe_mkdir("{$g['varetc_path']}/openvpn", 0600);
+ safe_mkdir("{$g['varetc_path']}/openvpn", 0750);
if (!is_dir("{$g['varetc_path']}/openvpn-csc"))
- safe_mkdir("{$g['varetc_path']}/openvpn-csc", 0600);
+ safe_mkdir("{$g['varetc_path']}/openvpn-csc", 0750);
$fpath = "{$g['varetc_path']}/openvpn/{$mode_id}.conf";
file_put_contents($fpath, $conf);
unset($conf);
OpenPOWER on IntegriCloud