summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorTroels Liebe Bentsen <tlb@rapanden.dk>2006-02-18 19:32:51 +0100
committerTroels Liebe Bentsen <tlb@rapanden.dk>2006-02-18 19:32:51 +0100
commitac9115b0337bc6c9b49cdb05210dd85a270d1594 (patch)
treefa7e2699f86ea0ff578324dd27ea2c4b54170834 /inc/init.php
parentc771e9edbaeab519add52cb6ef140f2eec24d217 (diff)
downloadrpg-ac9115b0337bc6c9b49cdb05210dd85a270d1594.tar.gz
rpg-ac9115b0337bc6c9b49cdb05210dd85a270d1594.tar.bz2
Fix wrong umask usage and so we set the correct file premissions.
darcs-hash:20060218183251-ee6b9-798ab2994526311b1e58f04e7684b39b51426887.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/init.php b/inc/init.php
index 65c64515c..a81ca2d10 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -118,10 +118,12 @@ function init_files(){
$conf['cachedir'].'/page.idx',
$conf['cachedir'].'/index.idx', );
+ umask($conf['umask']);
foreach($files as $file){
if(!@file_exists($file)){
$fh = fopen($file,'a');
fclose($fh);
+ chmod($conf['fmode'], $file);
}
}
}