summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-14 01:26:59 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-14 01:26:59 +0800
commit58dcec234e414c296b266822aaf880c92a86c5d2 (patch)
tree0199cbc0dc2a22a74772dcfc9efaaf7b818edf5b
parent8757cdfe471d6bbe514b2197e1db7e001aeaaae4 (diff)
downloadpttbbs-58dcec234e414c296b266822aaf880c92a86c5d2.tar
pttbbs-58dcec234e414c296b266822aaf880c92a86c5d2.tar.gz
pttbbs-58dcec234e414c296b266822aaf880c92a86c5d2.tar.bz2
pttbbs-58dcec234e414c296b266822aaf880c92a86c5d2.tar.lz
pttbbs-58dcec234e414c296b266822aaf880c92a86c5d2.tar.xz
pttbbs-58dcec234e414c296b266822aaf880c92a86c5d2.tar.zst
pttbbs-58dcec234e414c296b266822aaf880c92a86c5d2.zip
delete only no (FILE_MARKED | FILE_DIGEST)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1535 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/record.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 5e3a4ebe..ec3be179 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -430,6 +430,8 @@ safe_article_delete_range(char *direct, int from, int to)
for( ; from <= to ; ++from ){
read(fd, &newfhdr, sizeof(fileheader_t));
+ if( newfhdr.filemode & (FILE_MARKED | FILE_DIGEST) )
+ continue;
strlcpy(ptr, newfhdr.filename, sizeof(newfhdr.filename));
unlink(fn);