VERSION now prints details for daily.inc (closes bug#107)

git-svn: trunk@2460
remotes/push_mirror/metadata
Tomasz Kojm 19 years ago
parent edaff93e66
commit 38432c5364
  1. 4
      clamav-devel/ChangeLog
  2. 6
      clamav-devel/clamd/session.c

@ -1,3 +1,7 @@
Sun Oct 29 19:22:00 CET 2006 (tk)
---------------------------------
* clamd/session.c: VERSION now prints details for daily.inc (closes bug#107)
Sun Oct 29 16:33:01 CET 2006 (tk)
---------------------------------
* shared/cdiff.c: make cdiff_apply() compatible with old zlib versions

@ -278,13 +278,17 @@ int command(int desc, const struct cl_node *root, const struct cl_limits *limits
const char *dbdir = cfgopt(copt, "DatabaseDirectory")->strarg;
char *path;
struct cl_cvd *daily;
struct stat foo;
if(!(path = mmalloc(strlen(dbdir) + 11))) {
if(!(path = mmalloc(strlen(dbdir) + 30))) {
mdprintf(desc, "Memory allocation error - SHUTDOWN forced\n");
return COMMAND_SHUTDOWN;
}
sprintf(path, "%s/daily.cvd", dbdir);
if(stat(path, &foo) == -1)
sprintf(path, "%s/daily.inc/daily.info", dbdir);
if((daily = cl_cvdhead(path))) {
time_t t = (time_t) daily->stime;

Loading…
Cancel
Save