aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/init.php
diff options
context:
space:
mode:
authormovatica <c0d3@movatica.com>2020-02-18 21:46:31 +0100
committermovatica <c0d3@movatica.com>2020-02-18 21:46:31 +0100
commit9fdcc8fcd87114ca59a1764a84d213a53c655c8c (patch)
tree1ab1ad95a9036f3603188c16caddb9b3518e1153 /inc/init.php
parent3aa75874971939d1a5fde5d5cbca46695cb03af3 (diff)
downloaddokuwiki-9fdcc8fcd87114ca59a1764a84d213a53c655c8c.tar.gz
dokuwiki-9fdcc8fcd87114ca59a1764a84d213a53c655c8c.zip
Respect fmode config setting
Fix hardcoded fmode overriding user config, which breaks with nondefault environments.
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php
index 743356857..f9bb53472 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -405,7 +405,7 @@ function init_creationmodes(){
// check what is set automatically by the system on file creation
// and set the fperm param if it's not what we want
- $auto_fmode = 0666 & ~$umask;
+ $auto_fmode = $conf['fmode'] & ~$umask;
if($auto_fmode != $conf['fmode']) $conf['fperm'] = $conf['fmode'];
// check what is set automatically by the system on file creation