diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-10-27 14:40:33 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-10-27 14:40:33 +0800 |
commit | 84f2e19610f3b0a699dc006806ccc82659686130 (patch) | |
tree | 9bd660aa4cf95e5b3561406e435f95a50f377881 | |
parent | 3778abff35cb3ec1c0f1481d78bd71dc822df3c4 (diff) | |
download | pttbbs-84f2e19610f3b0a699dc006806ccc82659686130.tar pttbbs-84f2e19610f3b0a699dc006806ccc82659686130.tar.gz pttbbs-84f2e19610f3b0a699dc006806ccc82659686130.tar.bz2 pttbbs-84f2e19610f3b0a699dc006806ccc82659686130.tar.lz pttbbs-84f2e19610f3b0a699dc006806ccc82659686130.tar.xz pttbbs-84f2e19610f3b0a699dc006806ccc82659686130.tar.zst pttbbs-84f2e19610f3b0a699dc006806ccc82659686130.zip |
let expire know the new file names by edit history
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5168 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/util/expire.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pttbbs/util/expire.c b/pttbbs/util/expire.c index eb584a53..0b809464 100644 --- a/pttbbs/util/expire.c +++ b/pttbbs/util/expire.c @@ -120,7 +120,10 @@ void expire(life_t *brd) ftime = atoi(head.filename + 2); if (head.owner[0] == '-' #ifdef SAFE_ARTICLE_DELETE - || strncmp(head.filename, FN_SAFEDEL, sizeof(FN_SAFEDEL) - 1) == 0 + || strcmp(head.filename, FN_SAFEDEL) == 0 +#ifdef FN_SAFEDEL_PREFIX_LEN + || strncmp(head.filename, FN_SAFEDEL, FN_SAFEDEL_PREFIX_LEN) == 0 +#endif #endif ) keep = 0; |