diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-10-27 22:32:27 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-10-27 22:32:27 +0800 |
commit | 6fe0b766168afe8dd9328d2775363e48a211e83b (patch) | |
tree | 4633a175a402377ae9a4eacf0273ab718f959bd6 | |
parent | 5a0f5170fb1a70975a51d074ba48265386677a4e (diff) | |
download | pttbbs-6fe0b766168afe8dd9328d2775363e48a211e83b.tar pttbbs-6fe0b766168afe8dd9328d2775363e48a211e83b.tar.gz pttbbs-6fe0b766168afe8dd9328d2775363e48a211e83b.tar.bz2 pttbbs-6fe0b766168afe8dd9328d2775363e48a211e83b.tar.lz pttbbs-6fe0b766168afe8dd9328d2775363e48a211e83b.tar.xz pttbbs-6fe0b766168afe8dd9328d2775363e48a211e83b.tar.zst pttbbs-6fe0b766168afe8dd9328d2775363e48a211e83b.zip |
ignore when last entry of board is "deleted"
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5170 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/common/bbs/cache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pttbbs/common/bbs/cache.c b/pttbbs/common/bbs/cache.c index 5550b2c0..ba300191 100644 --- a/pttbbs/common/bbs/cache.c +++ b/pttbbs/common/bbs/cache.c @@ -589,6 +589,11 @@ setbtotal(int bid) if (num > 0) { lseek(fd, (off_t) (num - 1) * sizeof(fileheader_t), SEEK_SET); if (read(fd, genbuf, FNLEN) >= 0) { +#ifdef FN_SAFEDEL_PREFIX_LEN + if (strncmp(genbuf, FN_SAFEDEL, FN_SAFEDEL_PREFIX_LEN) == 0) + SHM->lastposttime[bid - 1] = 0; + else +#endif SHM->lastposttime[bid - 1] = (time4_t) atoi(&genbuf[2]); } } else |