summaryrefslogtreecommitdiff
path: root/lib/exe/indexer.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-09-30 17:14:07 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-09-30 17:14:07 +0200
commit3a800f4c1100ecaf16fb4ed3c7b49c6677419076 (patch)
tree18227551ca298421bd6f9614bd29e4518583c0bf /lib/exe/indexer.php
parent93a60ad223af9f649d62d2acbdffd22ce5ad1b97 (diff)
downloadrpg-3a800f4c1100ecaf16fb4ed3c7b49c6677419076.tar.gz
rpg-3a800f4c1100ecaf16fb4ed3c7b49c6677419076.tar.bz2
mkdir compatibility fix in indexer #575
darcs-hash:20050930151407-7ad00-56002a89c36a82a249de577227929ace91ebad2f.gz
Diffstat (limited to 'lib/exe/indexer.php')
-rw-r--r--lib/exe/indexer.php2
1 files changed, 1 insertions, 1 deletions
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);