diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-10-01 20:08:01 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-10-01 20:08:01 +0800 |
commit | 3b7c2e43eaebe4923ab8705cf3eca6f270e4f18c (patch) | |
tree | e8213bb253f75ff2a1fdac019b7497bbca022bfa | |
parent | 57dd931ae65a637ed94d583060836433d192b244 (diff) | |
download | pttbbs-3b7c2e43eaebe4923ab8705cf3eca6f270e4f18c.tar pttbbs-3b7c2e43eaebe4923ab8705cf3eca6f270e4f18c.tar.gz pttbbs-3b7c2e43eaebe4923ab8705cf3eca6f270e4f18c.tar.bz2 pttbbs-3b7c2e43eaebe4923ab8705cf3eca6f270e4f18c.tar.lz pttbbs-3b7c2e43eaebe4923ab8705cf3eca6f270e4f18c.tar.xz pttbbs-3b7c2e43eaebe4923ab8705cf3eca6f270e4f18c.tar.zst pttbbs-3b7c2e43eaebe4923ab8705cf3eca6f270e4f18c.zip |
fix: admin edit log
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5410 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 64df3966..a9ff44f2 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -1674,6 +1674,7 @@ edit_post(int ent, fileheader_t * fhdr, const char *direct) ) return DONOTHING; + setdirpath(genbuf, direct, fhdr->filename); if (!is_file_owner(fhdr, &cuser)) { if (!HasUserPerm(PERM_SYSOP)) @@ -1682,10 +1683,9 @@ edit_post(int ent, fileheader_t * fhdr, const char *direct) // admin edit! log_filef("log/security", LOG_CREAT, "%d %s %d %s admin edit (board) file=%s\n", - (int)now, Cdate(&now), getpid(), cuser.userid, fpath); + (int)now, Cdate(&now), getpid(), cuser.userid, genbuf); } - setdirpath(genbuf, direct, fhdr->filename); if (!dashf(genbuf)) { vmsg("此檔已損毀,無法編輯。您可以試著刪除它。"); return FULLUPDATE; |