git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1272 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2005/01/25 14:16:45... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Tue Jan 25 06:13:29 CET 2005 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * freshclam/manager.c: properly count signatures in --no-dns mode (problem |
|
4 |
+ reported by Tomasz Papszun) |
|
5 |
+ |
|
1 | 6 |
Tue Jan 25 05:09:42 CET 2005 (tk) |
2 | 7 |
--------------------------------- |
3 | 8 |
* clamscan/manager.c: fix bad path completion when using options for external |
... | ... |
@@ -1,5 +1,5 @@ |
1 | 1 |
/* |
2 |
- * Copyright (C) 2002 - 2004 Tomasz Kojm <tkojm@clamav.net> |
|
2 |
+ * Copyright (C) 2002 - 2005 Tomasz Kojm <tkojm@clamav.net> |
|
3 | 3 |
* HTTP/1.1 compliance by Arkadiusz Miskiewicz <misiek@pld.org.pl> |
4 | 4 |
* Proxy support by Nigel Horne <njh@bandsman.co.uk> |
5 | 5 |
* Proxy authorization support by Gernot Tenchio <g.tenchio@telco-tech.de> |
... | ... |
@@ -290,9 +290,8 @@ int downloaddb(const char *localname, const char *remotename, const char *hostna |
290 | 290 |
if(!nodb && !ims) { |
291 | 291 |
mprintf("%s is up to date (version: %d, sigs: %d, f-level: %d, builder: %s)\n", localname, current->version, current->sigs, current->fl, current->builder); |
292 | 292 |
logg("%s is up to date (version: %d, sigs: %d, f-level: %d, builder: %s)\n", localname, current->version, current->sigs, current->fl, current->builder); |
293 |
- if(current) |
|
294 |
- cl_cvdfree(current); |
|
295 |
- |
|
293 |
+ *signo += current->sigs; |
|
294 |
+ cl_cvdfree(current); |
|
296 | 295 |
return 1; |
297 | 296 |
} |
298 | 297 |
|
... | ... |
@@ -523,11 +522,12 @@ struct cl_cvd *remote_cvdhead(const char *file, int socketfd, const char *hostna |
523 | 523 |
} |
524 | 524 |
} |
525 | 525 |
|
526 |
- if(stat(file, &sb) != -1) { |
|
526 |
+ if(stat(file, &sb) != -1 && sb.st_mtime < time(NULL)) { |
|
527 | 527 |
Rfc2822DateTime(last_modified, sb.st_mtime); |
528 | 528 |
} else { |
529 | 529 |
time_t mtime = 1104119530; |
530 | 530 |
Rfc2822DateTime(last_modified, mtime); |
531 |
+ mprintf("*Assuming modification time in the past\n"); |
|
531 | 532 |
} |
532 | 533 |
|
533 | 534 |
mprintf("*If-Modified-Since: %s\n", last_modified); |