diff options
-rw-r--r-- | mbbsd/bbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index f1e09eaf..7d9b75d9 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1737,7 +1737,8 @@ mark_post(int ent, fileheader_t * fhdr, char *direct) setbpath(fpath, currboard); sprintf(buf, "%s/%s", fpath, fhdr->filename); - if(access(buf, F_OK) < 0) + if( !(fhdr->filemode & FILE_MARKED) && /* 若目前還沒有 mark 才要 check */ + access(buf, F_OK) < 0 ) return DONOTHING; fhdr->filemode ^= FILE_MARKED; |