diff options
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 2 |
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); } } } |