diff options
author | Troels Liebe Bentsen <tlb@rapanden.dk> | 2006-02-24 22:16:55 +0100 |
---|---|---|
committer | Troels Liebe Bentsen <tlb@rapanden.dk> | 2006-02-24 22:16:55 +0100 |
commit | 44881d272282937c9bb745f462c947319d404dd0 (patch) | |
tree | 186d932116e04b1271ad22a3bd628d6617a49c49 /conf/dokuwiki.php | |
parent | b687885519897ab2959bb0540ec822b96f722fd6 (diff) | |
download | rpg-44881d272282937c9bb745f462c947319d404dd0.tar.gz rpg-44881d272282937c9bb745f462c947319d404dd0.tar.bz2 |
Fix umask bug and do a code cleanup of chmod/mkdir usage so set the correct permissions, this should also fix problems with dokuwiki making setuid files on some umasks.
* Don't set the umask() anymore, this is not good form and we don't really know what is it in the old code anyway as it was not done properly.
* Retire the dmask config option introduce 2 new ones called fmode and dmode, this is more in line with posix and should make more sense.
* Use chmod for setting the correct permissions but only if it's needed.
* Set changing of permissions off by default as i should work properly in most Apache setups without and it does not make sense on windows anyway.
darcs-hash:20060224211655-ee6b9-68f7bb59417d6f0033cfd3764146923daa4dcf1b.gz
Diffstat (limited to 'conf/dokuwiki.php')
-rw-r--r-- | conf/dokuwiki.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php index bf81d8bc4..1b1c7d6c8 100644 --- a/conf/dokuwiki.php +++ b/conf/dokuwiki.php @@ -8,9 +8,9 @@ /* Datastorage and Permissions */ -$conf['umask'] = 0022; //set the global umask -$conf['fmode'] = 0666; //set file creation mode -$conf['dmode'] = 0777; //set direction creation mode +#$conf['umask'] = 0002; //set the global umask +#$conf['fmode'] = 0666; //set file creation mode +#$conf['dmode'] = 0777; //set direction creation mode $conf['lang'] = 'en'; //your language $conf['basedir'] = ''; //absolute dir from serveroot - blank for autodetection |