git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@103 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2003/11/06 14:07:46... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Thu Nov 6 10:36:57 IST 2003 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: Not all applications (those not sent as legal attachments) |
|
4 |
+ were being scanned |
|
5 |
+ |
|
1 | 6 |
Thu Nov 6 03:00:44 CET 2003 (tk) |
2 | 7 |
--------------------------------- |
3 | 8 |
* database/Makefile: fixed an installation problem with unprivileged user |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.17 2003/11/06 05:06:42 nigelhorne |
|
21 |
+ * Some applications weren't being scanned |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.16 2003/11/04 08:24:00 nigelhorne |
21 | 24 |
* Handle multipart messages that have no text portion |
22 | 25 |
* |
... | ... |
@@ -39,7 +42,7 @@ |
39 | 39 |
* Compilable under SCO; removed duplicate code with message.c |
40 | 40 |
* |
41 | 41 |
*/ |
42 |
-static char const rcsid[] = "$Id: mbox.c,v 1.16 2003/11/04 08:24:00 nigelhorne Exp $"; |
|
42 |
+static char const rcsid[] = "$Id: mbox.c,v 1.17 2003/11/06 05:06:42 nigelhorne Exp $"; |
|
43 | 43 |
|
44 | 44 |
#ifndef CL_DEBUG |
45 | 45 |
/*#define NDEBUG /* map CLAMAV debug onto standard */ |
... | ... |
@@ -1053,8 +1056,9 @@ insert(message *mainMessage, blob **blobsIn, int nBlobs, text *textIn, const cha |
1053 | 1053 |
case APPLICATION: |
1054 | 1054 |
cptr = messageGetMimeSubtype(mainMessage); |
1055 | 1055 |
|
1056 |
- if((strcasecmp(cptr, "octet-stream") == 0) || |
|
1057 |
- (strcasecmp(cptr, "x-msdownload") == 0)) { |
|
1056 |
+ /*if((strcasecmp(cptr, "octet-stream") == 0) || |
|
1057 |
+ (strcasecmp(cptr, "x-msdownload") == 0)) {*/ |
|
1058 |
+ { |
|
1058 | 1059 |
blob *aBlob = messageToBlob(mainMessage); |
1059 | 1060 |
|
1060 | 1061 |
if(aBlob) { |
... | ... |
@@ -1075,8 +1079,8 @@ insert(message *mainMessage, blob **blobsIn, int nBlobs, text *textIn, const cha |
1075 | 1075 |
assert(nBlobs < MAX_ATTACHMENTS); |
1076 | 1076 |
} |
1077 | 1077 |
} |
1078 |
- } else |
|
1079 |
- cli_warnmsg("Discarded application not sent as attachment\n"); |
|
1078 |
+ } /*else |
|
1079 |
+ cli_warnmsg("Discarded application not sent as attachment\n");*/ |
|
1080 | 1080 |
break; |
1081 | 1081 |
|
1082 | 1082 |
case AUDIO: |