git-svn: trunk@4883
Tomasz Kojm authored on 2009/03/03 01:39:25... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Mon Mar 2 17:41:12 CET 2009 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * clamscan/manager.c: make error reporting compatible with clamd and previous |
|
4 |
+ versions of clamscan |
|
5 |
+ |
|
1 | 6 |
Mon Mar 2 17:37:50 CET 2009 (tk) |
2 | 7 |
--------------------------------- |
3 | 8 |
* libclamav: report error instead of crashing when engine is not compiled |
... | ... |
@@ -158,7 +158,7 @@ static int scanfile(const char *filename, struct cl_engine *engine, const struct |
158 | 158 |
mprintf("~%s: OK\n", filename); |
159 | 159 |
} else |
160 | 160 |
if(!printinfected) |
161 |
- logg("~%s: %s\n", filename, cl_strerror(ret)); |
|
161 |
+ logg("~%s: %s ERROR\n", filename, cl_strerror(ret)); |
|
162 | 162 |
|
163 | 163 |
close(fd); |
164 | 164 |
|
... | ... |
@@ -314,7 +314,7 @@ static int scanstdin(const struct cl_engine *engine, const struct optstruct *opt |
314 | 314 |
mprintf("stdin: OK\n"); |
315 | 315 |
} else |
316 | 316 |
if(!printinfected) |
317 |
- logg("stdin: %s\n", cl_strerror(ret)); |
|
317 |
+ logg("stdin: %s ERROR\n", cl_strerror(ret)); |
|
318 | 318 |
|
319 | 319 |
unlink(file); |
320 | 320 |
free(file); |