From 8d7bbd8c92dea8d7cb77be47b01761cb320dd82f Mon Sep 17 00:00:00 2001 From: henoheno Date: Sun, 2 Sep 2007 21:35:00 +0900 Subject: [PATCH] BugTrack2/55: Added two functions. pkwk_chown(): Try to correct UID of the file pkwk_touch_file(): touch() with pkwk_chown() --- lib/init.php | 2 +- plugin/attach.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/init.php b/lib/init.php index ea6f4c4..62c2e88 100644 --- a/lib/init.php +++ b/lib/init.php @@ -204,7 +204,7 @@ unset($die, $temp); // ɬ¿Ü¤Î¥Ú¡¼¥¸¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¡¢¶õ¤Î¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë foreach(array($defaultpage, $whatsnew, $interwiki) as $page){ - if (! is_page($page)) touch(get_filename($page)); + if (! is_page($page)) pkwk_touch_file(get_filename($page)); } ///////////////////////////////////////////////// diff --git a/plugin/attach.inc.php b/plugin/attach.inc.php index 4e04a6c..7fda592 100644 --- a/plugin/attach.inc.php +++ b/plugin/attach.inc.php @@ -195,7 +195,7 @@ function attach_upload($file, $page, $pass = NULL) chmod($obj->filename, PLUGIN_ATTACH_FILE_MODE); if (is_page($page)) - touch(get_filename($page)); + pkwk_touch_file(get_filename($page)); $obj->getstatus(); $obj->status['pass'] = ($pass !== TRUE && $pass !== NULL) ? md5($pass) : ''; -- 2.11.0