• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

Commit MetaInfo

Revision0c91a64fb8d915e7d2f6e3cdce49c4e0369134b0 (tree)
Time2014-11-30 10:05:15
Authorhenoheno <henoheno>
Commiterumorigu

Log Message

BugTrack2/55: Added two functions.
pkwk_chown(): Try to correct UID of the file
pkwk_touch_file(): touch() with pkwk_chown()

Change Summary

Incremental Difference

--- a/lib/init.php
+++ b/lib/init.php
@@ -204,7 +204,7 @@ unset($die, $temp);
204204 // 必須のページが存在しなければ、空のファイルを作成する
205205
206206 foreach(array($defaultpage, $whatsnew, $interwiki) as $page){
207- if (! is_page($page)) touch(get_filename($page));
207+ if (! is_page($page)) pkwk_touch_file(get_filename($page));
208208 }
209209
210210 /////////////////////////////////////////////////
--- a/plugin/attach.inc.php
+++ b/plugin/attach.inc.php
@@ -195,7 +195,7 @@ function attach_upload($file, $page, $pass = NULL)
195195 chmod($obj->filename, PLUGIN_ATTACH_FILE_MODE);
196196
197197 if (is_page($page))
198- touch(get_filename($page));
198+ pkwk_touch_file(get_filename($page));
199199
200200 $obj->getstatus();
201201 $obj->status['pass'] = ($pass !== TRUE && $pass !== NULL) ? md5($pass) : '';