git-svn: trunk@4296
Tomasz Kojm authored on 2008/10/28 18:25:55... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Oct 28 10:52:41 CET 2008 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * freshclam: re-enable --submit-stats (bb#1235) |
|
4 |
+ |
|
1 | 5 |
Mon Oct 27 18:07:08 EET 2008 (edwin) |
2 | 6 |
------------------------------------ |
3 | 7 |
* unit_tests/valgrind.supp: suppress valgrind warnings for old libc. |
... | ... |
@@ -67,6 +67,9 @@ Execute COMMAND when freshclam reports outdated version. In the command string % |
67 | 67 |
.TP |
68 | 68 |
\fB\-\-list\-mirrors\fR |
69 | 69 |
Print mirror details from mirrors.dat (cache file for the mirror manager). |
70 |
+.TP |
|
71 |
+\fB\-\-submit\-stats[=/path/to/clamd.conf]\fR |
|
72 |
+Upload detection statistics to the ClamAV Project (see freshclam.conf(5):SubmitDetectionStats for more details). No database update will be performed. This option only works in the interactive mode. |
|
70 | 73 |
.SH "EXAMPLES" |
71 | 74 |
.LP |
72 | 75 |
.TP |
... | ... |
@@ -144,6 +144,7 @@ static void help(void) |
144 | 144 |
mprintf(" --on-error-execute=COMMAND execute COMMAND if errors occured\n"); |
145 | 145 |
mprintf(" --on-outdated-execute=COMMAND execute COMMAND when software is outdated\n"); |
146 | 146 |
mprintf(" --list-mirrors print mirrors from mirrors.dat\n"); |
147 |
+ mprintf(" --submit-stats[=/path/clamd.conf] only submit detection statistics\n"); |
|
147 | 148 |
|
148 | 149 |
mprintf("\n"); |
149 | 150 |
} |
... | ... |
@@ -233,7 +234,7 @@ int main(int argc, char **argv) |
233 | 233 |
{"on-error-execute", 1, 0, 0}, |
234 | 234 |
{"on-outdated-execute", 1, 0, 0}, |
235 | 235 |
{"list-mirrors", 0, 0, 0}, |
236 |
- /* {"submit-stats", 2, 0, 0}, */ |
|
236 |
+ {"submit-stats", 2, 0, 0}, |
|
237 | 237 |
{0, 0, 0, 0} |
238 | 238 |
}; |
239 | 239 |
|
... | ... |
@@ -580,11 +581,12 @@ int main(int argc, char **argv) |
580 | 580 |
} |
581 | 581 |
|
582 | 582 |
} else { |
583 |
- /* |
|
584 | 583 |
if(opt_check(opt, "submit-stats")) { |
585 | 584 |
cfgfile = opt_arg(opt, "submit-stats"); |
586 | 585 |
if(!cfgfile) |
587 | 586 |
cfgfile = CONFDIR"/clamd.conf"; |
587 |
+ if(!opt_check(opt, "no-warnings")) |
|
588 |
+ logg(" *** Virus databases are not updated in this mode ***\n"); |
|
588 | 589 |
ret = submitstats(cfgfile, copt); |
589 | 590 |
} else { |
590 | 591 |
ret = download(copt, opt, newdir, cfgfile); |
... | ... |
@@ -592,12 +594,6 @@ int main(int argc, char **argv) |
592 | 592 |
if((cpt = cfgopt(copt, "SubmitDetectionStats"))->enabled) |
593 | 593 |
submitstats(cpt->strarg, copt); |
594 | 594 |
} |
595 |
- */ |
|
596 |
- ret = download(copt, opt, newdir, cfgfile); |
|
597 |
- |
|
598 |
- if((cpt = cfgopt(copt, "SubmitDetectionStats"))->enabled) |
|
599 |
- submitstats(cpt->strarg, copt); |
|
600 |
- |
|
601 | 595 |
} |
602 | 596 |
|
603 | 597 |
if(ret > 1) { |