diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-12-02 01:22:24 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-12-02 01:22:24 +0800 |
commit | d58b8506d9802c349214ab88e3cc937aeb485634 (patch) | |
tree | 2f6ad1f0191662e5d4983ab7c8c8361a693f6e3c | |
parent | b7d81ba2b2877507a7fd193fdd248e13e8a3a8f1 (diff) | |
download | pttbbs-d58b8506d9802c349214ab88e3cc937aeb485634.tar pttbbs-d58b8506d9802c349214ab88e3cc937aeb485634.tar.gz pttbbs-d58b8506d9802c349214ab88e3cc937aeb485634.tar.bz2 pttbbs-d58b8506d9802c349214ab88e3cc937aeb485634.tar.lz pttbbs-d58b8506d9802c349214ab88e3cc937aeb485634.tar.xz pttbbs-d58b8506d9802c349214ab88e3cc937aeb485634.tar.zst pttbbs-d58b8506d9802c349214ab88e3cc937aeb485634.zip |
delete file on delete_crosspost, because getindex is not very stable.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5277 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 40c9e74d..5b66958e 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -896,8 +896,11 @@ do_deleteCrossPost(const fileheader_t *fh, char bname[]) #endif delete_fileheader(bdir, &newfh, i); setbtotal(bid); - unlink(file); } + + // the getindex is not stable. in order to prevent leaving files, + // no matter what, delete the file. + unlink(file); } static void |