diff options
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 24fe3e79..486bbd53 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -929,7 +929,11 @@ deleteCrossPost(const fileheader_t *fh, char *bname) } else { - do_deleteCrossPost(fh, BN_ALLPOST); + // Always delete file content in ALLPOST and keep the header + // because that will be reset by cron jobs + char file[PATHLEN]; + setbfile(file, BN_ALLPOST, fh->filename); + unlink(file); } } |