git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@828 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/09/05 08:46:59... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sun Sep 5 01:43:31 CEST 2004 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/cvd.c: display warning if engine is outdated |
|
4 |
+ |
|
1 | 5 |
Sat Sep 4 23:27:12 CEST 2004 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/clamav.h: define set of recommended scan options (CL_STDOPT) |
... | ... |
@@ -355,6 +355,13 @@ int cli_cvdload(FILE *fd, struct cl_node **root, int *virnum) |
355 | 355 |
} |
356 | 356 |
} |
357 | 357 |
|
358 |
+ if(cvd.fl > cl_retflevel()) { |
|
359 |
+ cli_warnmsg("****************************************************\n"); |
|
360 |
+ cli_warnmsg("*** This version of ClamAV engine is outdated. ***\n"); |
|
361 |
+ cli_warnmsg("*** Please update it IMMEDIATELY! ***\n"); |
|
362 |
+ cli_warnmsg("****************************************************\n"); |
|
363 |
+ } |
|
364 |
+ |
|
358 | 365 |
fseek(fd, 512, SEEK_SET); |
359 | 366 |
|
360 | 367 |
tmpdir = getenv("TMPDIR"); |