git-svn: trunk@2466
Nigel Horne authored on 2006/10/30 23:21:41... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Mon Oct 30 14:20:40 GMT 2006 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamav-milter: Added support for daily.inc/daily.info (patch from TK) |
|
4 |
+ |
|
1 | 5 |
Mon Oct 30 12:24:09 CET 2006 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* libclamav/readdb.c: cl_stat() functions now check .info files |
... | ... |
@@ -24,9 +24,9 @@ |
24 | 24 |
* |
25 | 25 |
* For installation instructions see the file INSTALL that came with this file |
26 | 26 |
*/ |
27 |
-static char const rcsid[] = "$Id: clamav-milter.c,v 1.294 2006/10/28 19:47:52 njh Exp $"; |
|
27 |
+static char const rcsid[] = "$Id: clamav-milter.c,v 1.295 2006/10/30 14:20:36 njh Exp $"; |
|
28 | 28 |
|
29 |
-#define CM_VERSION "devel-281006" |
|
29 |
+#define CM_VERSION "devel-301006" |
|
30 | 30 |
|
31 | 31 |
#if HAVE_CONFIG_H |
32 | 32 |
#include "clamav-config.h" |
... | ... |
@@ -5250,8 +5250,10 @@ loadDatabase(void) |
5250 | 5250 |
dbdir = cl_retdbdir(); |
5251 | 5251 |
} |
5252 | 5252 |
|
5253 |
- daily = cli_malloc(strlen(dbdir) + 11); |
|
5253 |
+ daily = cli_malloc(strlen(dbdir) + 22); |
|
5254 | 5254 |
sprintf(daily, "%s/daily.cvd", dbdir); |
5255 |
+ if(access(daily, R_OK) < 0) |
|
5256 |
+ sprintf(daily, "%s/daily.inc/daily.info", dbdir); |
|
5255 | 5257 |
|
5256 | 5258 |
cli_dbgmsg("loadDatabase: check %s for updates\n", daily); |
5257 | 5259 |
|