From 58dcec234e414c296b266822aaf880c92a86c5d2 Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 13 Feb 2004 17:26:59 +0000 Subject: delete only no (FILE_MARKED | FILE_DIGEST) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1535 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/record.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mbbsd') 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); -- cgit v1.2.3