diff options
author | Ermal <eri@pfsense.org> | 2012-11-21 09:45:23 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-11-21 09:45:51 +0000 |
commit | 10c7d6421dcab3252a54c12d36006de180da06d8 (patch) | |
tree | f69099015e4391979874cecf4d441841cfc2bee8 /etc | |
parent | ef363bc4c6ba204fd46dc47ce105cafbce83d075 (diff) | |
download | pfsense-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')
-rw-r--r-- | etc/inc/openvpn.inc | 4 |
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); |