Respect fmode config setting

Fix hardcoded fmode overriding user config, which breaks with nondefault environments.
This commit is contained in:
movatica 2020-02-18 21:46:31 +01:00
parent 3aa7587497
commit 9fdcc8fcd8
1 changed files with 1 additions and 1 deletions

View File

@ -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