git-svn: trunk@1603
Tomasz Kojm authored on 2005/06/03 03:07:36... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Thu Jun 2 20:04:04 CEST 2005 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: remove support for CL_SCAN_DISABLERAR (RAR unpacker is now |
|
4 |
+ enabled with CL_SCAN_ARCHIVE) |
|
5 |
+ |
|
1 | 6 |
Thu Jun 2 08:56:39 BST 2005 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/pdf.c: Handle ascii85encoded streams that are full of z's. |
... | ... |
@@ -19,7 +24,11 @@ Wed Jun 1 02:39:14 CEST 2005 (tk) |
19 | 19 |
- default values are directly associated with options |
20 | 20 |
* clamd/defaults.h: remove |
21 | 21 |
* clamd, clamdscan, freshclam: use new parser scheme |
22 |
- * etc/clamd.conf: remove DisableDefaultScanOptions |
|
22 |
+ * etc/clamd.conf: - remove DisableDefaultScanOptions (scan options can be |
|
23 |
+ now configured individually) |
|
24 |
+ - remove ScanRAR (RAR unpacker is now enabled with |
|
25 |
+ ScanArchive) |
|
26 |
+ |
|
23 | 27 |
|
24 | 28 |
Tue May 31 19:15:01 BST 2005 (njh) |
25 | 29 |
---------------------------------- |
... | ... |
@@ -67,14 +67,13 @@ extern "C" |
67 | 67 |
#define CL_SCAN_RAW 0 |
68 | 68 |
#define CL_SCAN_ARCHIVE 1 |
69 | 69 |
#define CL_SCAN_MAIL 2 |
70 |
-#define CL_SCAN_DISABLERAR 4 |
|
71 |
-#define CL_SCAN_OLE2 8 |
|
72 |
-#define CL_SCAN_BLOCKENCRYPTED 16 |
|
73 |
-#define CL_SCAN_HTML 32 |
|
74 |
-#define CL_SCAN_PE 64 |
|
75 |
-#define CL_SCAN_BLOCKBROKEN 128 |
|
76 |
-#define CL_SCAN_MAILURL 256 |
|
77 |
-#define CL_SCAN_BLOCKMAX 512 |
|
70 |
+#define CL_SCAN_OLE2 4 |
|
71 |
+#define CL_SCAN_BLOCKENCRYPTED 8 |
|
72 |
+#define CL_SCAN_HTML 16 |
|
73 |
+#define CL_SCAN_PE 32 |
|
74 |
+#define CL_SCAN_BLOCKBROKEN 64 |
|
75 |
+#define CL_SCAN_MAILURL 128 |
|
76 |
+#define CL_SCAN_BLOCKMAX 256 |
|
78 | 77 |
|
79 | 78 |
/* recommended options */ |
80 | 79 |
#define CL_SCAN_STDOPT (CL_SCAN_ARCHIVE | CL_SCAN_MAIL | CL_SCAN_OLE2 | CL_SCAN_HTML | CL_SCAN_PE) |
... | ... |
@@ -83,7 +82,6 @@ extern "C" |
83 | 83 |
#define CL_RAW CL_SCAN_RAW |
84 | 84 |
#define CL_ARCHIVE CL_SCAN_ARCHIVE |
85 | 85 |
#define CL_MAIL CL_SCAN_MAIL |
86 |
-#define CL_DISABLERAR CL_SCAN_DISABLERAR |
|
87 | 86 |
#define CL_OLE2 CL_SCAN_OLE2 |
88 | 87 |
#define CL_ENCRYPTED CL_SCAN_BLOCKENCRYPTED |
89 | 88 |
|
... | ... |
@@ -96,7 +96,6 @@ extern int cli_mbox(const char *dir, int desc, unsigned int options); /* FIXME * |
96 | 96 |
#define SCAN_OLE2 (options & CL_SCAN_OLE2) |
97 | 97 |
#define SCAN_HTML (options & CL_SCAN_HTML) |
98 | 98 |
#define SCAN_PE (options & CL_SCAN_PE) |
99 |
-#define DISABLE_RAR (options & CL_SCAN_DISABLERAR) |
|
100 | 99 |
#define DETECT_ENCRYPTED (options & CL_SCAN_BLOCKENCRYPTED) |
101 | 100 |
#define BLOCKMAX (options & CL_SCAN_BLOCKMAX) |
102 | 101 |
|
... | ... |
@@ -1431,7 +1430,7 @@ int cli_magic_scandesc(int desc, const char **virname, long int *scanned, const |
1431 | 1431 |
|
1432 | 1432 |
switch(type) { |
1433 | 1433 |
case CL_TYPE_RAR: |
1434 |
- if(!DISABLE_RAR && SCAN_ARCHIVE) |
|
1434 |
+ if(SCAN_ARCHIVE) |
|
1435 | 1435 |
ret = cli_scanrar(desc, virname, scanned, root, limits, options, arec, mrec); |
1436 | 1436 |
break; |
1437 | 1437 |
|