summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-11-07 10:02:34 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-11-07 10:02:34 +0800
commit96b0fd7c1203a8f9cc4aeeac6b2a94c303b9864d (patch)
tree683b6b05f2ed8c9c83f7123b1d5dc2c5b12fdb20
parent0950fcb89a3152a03cc3f44e4d9beae17dfdd7f1 (diff)
downloadpttbbs-96b0fd7c1203a8f9cc4aeeac6b2a94c303b9864d.tar
pttbbs-96b0fd7c1203a8f9cc4aeeac6b2a94c303b9864d.tar.gz
pttbbs-96b0fd7c1203a8f9cc4aeeac6b2a94c303b9864d.tar.bz2
pttbbs-96b0fd7c1203a8f9cc4aeeac6b2a94c303b9864d.tar.lz
pttbbs-96b0fd7c1203a8f9cc4aeeac6b2a94c303b9864d.tar.xz
pttbbs-96b0fd7c1203a8f9cc4aeeac6b2a94c303b9864d.tar.zst
pttbbs-96b0fd7c1203a8f9cc4aeeac6b2a94c303b9864d.zip
fix: hard-linked mails will share 'deleted' log between users
#1CrWSqFV (PttBug) git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5218 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/record.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/record.c b/pttbbs/mbbsd/record.c
index 980503a6..28056e88 100644
--- a/pttbbs/mbbsd/record.c
+++ b/pttbbs/mbbsd/record.c
@@ -372,8 +372,11 @@ delete_file_content(const char *direct, const fileheader_t *fh,
if (backup_direct &&
strncmp(fh->owner, RECYCLE_BIN_OWNER, strlen(RECYCLE_BIN_OWNER)) != 0) {
- log_filef(fpath, LOG_CREAT, "\n¡° Deleted by: %s (%s) %s\n",
- cuser.userid, fromhost, Cdatelite(&now));
+ // FIXME some announcements were made by hard-links, especial for those
+ // in mail. let's temporary make this tag appear only in board.
+ if (*direct == 'b')
+ log_filef(fpath, LOG_CREAT, "\n¡° Deleted by: %s (%s) %s\n",
+ cuser.userid, fromhost, Cdatelite(&now));
// TODO or only memcpy(&backup, fh, sizeof(backup)); ?
strlcpy(backup.owner, fh->owner, sizeof(backup.owner));