Browse code

fix error messages

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1027 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/10/21 04:07:10
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Wed Oct 20 21:00:37 CEST 2004 (tk)
2
+----------------------------------
3
+  * clamdscan: fix error messages (problem reported by Jason Haar
4
+	       <Jason.Haar*trimble.co.nz>)
5
+
1 6
 Wed Oct 20 13:23:33 BST 2004 (njh)
2 7
 ----------------------------------
3 8
   * libclamav/untar.c:	Print warning message about unsopported (yet) formats
... ...
@@ -85,7 +85,7 @@ int dsfile(int sockd, const char *filename)
85 85
 
86 86
     fclose(fd);
87 87
 
88
-    if(!infected)
88
+    if(!infected && !waserror)
89 89
 	mprintf("%s: OK\n", filename);
90 90
 
91 91
     return infected ? infected : (waserror ? -1 : 0);