From 3a800f4c1100ecaf16fb4ed3c7b49c6677419076 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 30 Sep 2005 17:14:07 +0200 Subject: mkdir compatibility fix in indexer #575 darcs-hash:20050930151407-7ad00-56002a89c36a82a249de577227929ace91ebad2f.gz --- lib/exe/indexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/exe/indexer.php') diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php index 2e70b59b3..451ba97ca 100644 --- a/lib/exe/indexer.php +++ b/lib/exe/indexer.php @@ -25,7 +25,7 @@ if($last > @filemtime(wikiFN($ID))) sendGIF(); // try to aquire a lock $lock = $conf['lockdir'].'/_indexer.lock'; -while(!@mkdir($lock)){ +while(!@mkdir($lock,0777)){ if(time()-@filemtime($lock) > 60*5){ // looks like a stale lock - remove it @rmdir($lock); -- cgit v1.2.3