git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@2637 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2007/01/21 02:26:27... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Jan 20 17:25:40 GMT 2007 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/mbox.c: Fix bug 240, based on a patch from Edwin |
|
4 |
+ |
|
1 | 5 |
Sat Jan 20 12:36:53 CET 2007 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* libclamav/scanners.c: cli_unrar_close() was being called too early |
... | ... |
@@ -16,7 +16,7 @@ |
16 | 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | 17 |
* MA 02110-1301, USA. |
18 | 18 |
*/ |
19 |
-static char const rcsid[] = "$Id: mbox.c,v 1.370 2007/01/07 21:30:49 njh Exp $"; |
|
19 |
+static char const rcsid[] = "$Id: mbox.c,v 1.371 2007/01/20 17:24:44 njh Exp $"; |
|
20 | 20 |
|
21 | 21 |
#ifdef _MSC_VER |
22 | 22 |
#include <winsock.h> /* only needed in CL_EXPERIMENTAL */ |
... | ... |
@@ -146,7 +146,9 @@ typedef enum { |
146 | 146 |
#if defined(WITH_CURL) || defined(CL_EXPERIMENTAL) |
147 | 147 |
#define FOLLOWURLS 5 /* |
148 | 148 |
* Maximum number of URLs scanned in a message |
149 |
- * part. Helps to find Dialer.gen-45. If |
|
149 |
+ * part. Helps to prevent Dialer.gen-45 and |
|
150 |
+ * Trojan.WinREG.Zapchast which are often |
|
151 |
+ * dispatched by emails which point to it. If |
|
150 | 152 |
* not defined, don't check any URLs |
151 | 153 |
*/ |
152 | 154 |
#endif |
... | ... |
@@ -1281,6 +1283,7 @@ cli_parse_mbox(const char *dir, int desc, cli_ctx *ctx) |
1281 | 1281 |
close(i); |
1282 | 1282 |
return CL_EOPEN; |
1283 | 1283 |
} |
1284 |
+ rewind(fd); /* bug 240 */ |
|
1284 | 1285 |
#ifdef CL_DEBUG |
1285 | 1286 |
/* |
1286 | 1287 |
* Copy the incoming mail for debugging, so that if it falls over |