diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-17 20:47:22 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-17 20:47:22 +0800 |
commit | 240e8f14ae26ddc2b375fc04bd6866d99ad1e880 (patch) | |
tree | cd536e2736414cc981c3fabee7a30880e896b79e | |
parent | 0487addce5ddefe4bbd9736aaa46644271787315 (diff) | |
download | pttbbs-240e8f14ae26ddc2b375fc04bd6866d99ad1e880.tar pttbbs-240e8f14ae26ddc2b375fc04bd6866d99ad1e880.tar.gz pttbbs-240e8f14ae26ddc2b375fc04bd6866d99ad1e880.tar.bz2 pttbbs-240e8f14ae26ddc2b375fc04bd6866d99ad1e880.tar.lz pttbbs-240e8f14ae26ddc2b375fc04bd6866d99ad1e880.tar.xz pttbbs-240e8f14ae26ddc2b375fc04bd6866d99ad1e880.tar.zst pttbbs-240e8f14ae26ddc2b375fc04bd6866d99ad1e880.zip |
- do not log delete info for delete_allpost because it is usually used by system.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4177 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-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)); } |