summaryrefslogtreecommitdiff
path: root/bin
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 /bin
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 'bin')
-rwxr-xr-xbin/indexer.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/indexer.php b/bin/indexer.php
index f84e1abf2..0eb1fbe48 100755
--- a/bin/indexer.php
+++ b/bin/indexer.php
@@ -79,6 +79,7 @@ function _index($id){
_lock();
echo "$id... ";
idx_addPage($id);
+ umask($conf['umask']);
io_saveFile(metaFN($id,'.indexed'),' ');
echo "done.\n";
_unlock();
@@ -124,6 +125,7 @@ function _clearindex(){
global $conf;
_lock();
echo "Clearing index... ";
+ umask($conf['umask']);
io_saveFile($conf['cachedir'].'/word.idx','');
io_saveFile($conf['cachedir'].'/page.idx','');
io_saveFile($conf['cachedir'].'/index.idx','');