eliminate misleading error message when downloading to empty directory

git-svn: trunk@3391
remotes/push_mirror/metadata
Tomasz Kojm 18 years ago
parent ffd5fc85aa
commit 7291868a75
  1. 5
      ChangeLog
  2. 5
      freshclam/manager.c

@ -1,3 +1,8 @@
Tue Dec 11 20:20:36 CET 2007 (tk)
---------------------------------
* freshclam/manager.c: eliminate misleading error message when downloading
to empty directory
Mon Dec 10 15:54:20 CET 2007 (tk)
---------------------------------
* libclamav/nsis/bzlib_private.h: fix bzlib bug (aCaB)

@ -820,7 +820,7 @@ static struct cl_cvd *currentdb(const char *dbname, unsigned int *inc)
{
struct stat sb;
char path[512];
struct cl_cvd *cvd;
struct cl_cvd *cvd = NULL;
snprintf(path, sizeof(path), "%s.inc", dbname);
@ -834,7 +834,8 @@ static struct cl_cvd *currentdb(const char *dbname, unsigned int *inc)
*inc = 0;
}
cvd = cl_cvdhead(path);
if(!access(path, R_OK))
cvd = cl_cvdhead(path);
return cvd;
}

Loading…
Cancel
Save