From ac9115b0337bc6c9b49cdb05210dd85a270d1594 Mon Sep 17 00:00:00 2001 From: Troels Liebe Bentsen Date: Sat, 18 Feb 2006 19:32:51 +0100 Subject: Fix wrong umask usage and so we set the correct file premissions. darcs-hash:20060218183251-ee6b9-798ab2994526311b1e58f04e7684b39b51426887.gz --- inc/init.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc/init.php') 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); } } } -- cgit v1.2.3