diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index d1f3e4fd..4f5a8779 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -786,7 +786,13 @@ delete_allpost(const char *userid) setbfile(file, BN_ALLPOST, fhdr.filename); unlink(file); - set_safedel_fhdr(&fhdr); + // usually delete_allpost are initiated by system, + // so don't set normal safedel. + strcpy(fhdr.filename, FN_SAFEDEL); + strcpy(fhdr.owner, "-"); + snprintf(fhdr.title, sizeof(fhdr.title), + "%s", STR_SAFEDEL_TITLE); + lseek(fd, sizeof(fileheader_t) * i, SEEK_SET); write(fd, &fhdr, sizeof(fileheader_t)); } |