Added support for daily.inc/daily.info

git-svn: trunk@2466
remotes/push_mirror/metadata
Nigel Horne 19 years ago
parent 7fc0a44bc9
commit 66643f8f3e
  1. 4
      clamav-devel/ChangeLog
  2. 8
      clamav-devel/clamav-milter/clamav-milter.c

@ -1,3 +1,7 @@
Mon Oct 30 14:20:40 GMT 2006 (njh)
----------------------------------
* clamav-milter: Added support for daily.inc/daily.info (patch from TK)
Mon Oct 30 12:24:09 CET 2006 (tk)
---------------------------------
* libclamav/readdb.c: cl_stat() functions now check .info files

@ -24,9 +24,9 @@
*
* For installation instructions see the file INSTALL that came with this file
*/
static char const rcsid[] = "$Id: clamav-milter.c,v 1.294 2006/10/28 19:47:52 njh Exp $";
static char const rcsid[] = "$Id: clamav-milter.c,v 1.295 2006/10/30 14:20:36 njh Exp $";
#define CM_VERSION "devel-281006"
#define CM_VERSION "devel-301006"
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -5250,8 +5250,10 @@ loadDatabase(void)
dbdir = cl_retdbdir();
}
daily = cli_malloc(strlen(dbdir) + 11);
daily = cli_malloc(strlen(dbdir) + 22);
sprintf(daily, "%s/daily.cvd", dbdir);
if(access(daily, R_OK) < 0)
sprintf(daily, "%s/daily.inc/daily.info", dbdir);
cli_dbgmsg("loadDatabase: check %s for updates\n", daily);

Loading…
Cancel
Save