... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu May 10 15:45:56 CEST 2012 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * freshclam: give custom dbs higher priority during update |
|
4 |
+ |
|
1 | 5 |
Tue May 8 15:31:51 CEST 2012 (acab) |
2 | 6 |
------------------------------------ |
3 | 7 |
* libclamav: detect read races and abort the scan with an error |
... | ... |
@@ -2182,6 +2182,15 @@ int downloadmanager(const struct optstruct *opts, const char *hostname, int loge |
2182 | 2182 |
logg("*Using IPv6 aware code\n"); |
2183 | 2183 |
#endif |
2184 | 2184 |
|
2185 |
+ /* custom dbs */ |
|
2186 |
+ if((opt = optget(opts, "DatabaseCustomURL"))->enabled) { |
|
2187 |
+ while(opt) { |
|
2188 |
+ if(updatecustomdb(opt->strarg, &signo, opts, localip, logerr) == 0) |
|
2189 |
+ updated = 1; |
|
2190 |
+ opt = opt->nextarg; |
|
2191 |
+ } |
|
2192 |
+ } |
|
2193 |
+ |
|
2185 | 2194 |
#ifdef HAVE_RESOLV_H |
2186 | 2195 |
dnsdbinfo = optget(opts, "DNSDatabaseInfo")->strarg; |
2187 | 2196 |
|
... | ... |
@@ -2363,15 +2372,6 @@ int downloadmanager(const struct optstruct *opts, const char *hostname, int loge |
2363 | 2363 |
mirman_write("mirrors.dat", dbdir, &mdat); |
2364 | 2364 |
mirman_free(&mdat); |
2365 | 2365 |
|
2366 |
- /* custom dbs */ |
|
2367 |
- if((opt = optget(opts, "DatabaseCustomURL"))->enabled) { |
|
2368 |
- while(opt) { |
|
2369 |
- if(updatecustomdb(opt->strarg, &signo, opts, localip, logerr) == 0) |
|
2370 |
- updated = 1; |
|
2371 |
- opt = opt->nextarg; |
|
2372 |
- } |
|
2373 |
- } |
|
2374 |
- |
|
2375 | 2366 |
cli_rmdirs(updtmpdir); |
2376 | 2367 |
|
2377 | 2368 |
if(checkdbdir() < 0) { |