git-svn: trunk@3391
Tomasz Kojm authored on 2007/12/12 05:03:17... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Tue Dec 11 20:20:36 CET 2007 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * freshclam/manager.c: eliminate misleading error message when downloading |
|
4 |
+ to empty directory |
|
5 |
+ |
|
1 | 6 |
Mon Dec 10 15:54:20 CET 2007 (tk) |
2 | 7 |
--------------------------------- |
3 | 8 |
* libclamav/nsis/bzlib_private.h: fix bzlib bug (aCaB) |
... | ... |
@@ -820,7 +820,7 @@ static struct cl_cvd *currentdb(const char *dbname, unsigned int *inc) |
820 | 820 |
{ |
821 | 821 |
struct stat sb; |
822 | 822 |
char path[512]; |
823 |
- struct cl_cvd *cvd; |
|
823 |
+ struct cl_cvd *cvd = NULL; |
|
824 | 824 |
|
825 | 825 |
|
826 | 826 |
snprintf(path, sizeof(path), "%s.inc", dbname); |
... | ... |
@@ -834,7 +834,8 @@ static struct cl_cvd *currentdb(const char *dbname, unsigned int *inc) |
834 | 834 |
*inc = 0; |
835 | 835 |
} |
836 | 836 |
|
837 |
- cvd = cl_cvdhead(path); |
|
837 |
+ if(!access(path, R_OK)) |
|
838 |
+ cvd = cl_cvdhead(path); |
|
838 | 839 |
|
839 | 840 |
return cvd; |
840 | 841 |
} |