Browse code

clamscan/manager.c: return errors for stdin scan failures (bb#2317)

Tomasz Kojm authored on 2010/10/08 22:39:55
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Oct  8 15:38:56 CEST 2010 (tk)
2
+----------------------------------
3
+ * clamscan/manager.c: return errors for stdin scan failures (bb#2317)
4
+
1 5
 Fri Oct  8 15:22:22 CEST 2010 (tk)
2 6
 ----------------------------------
3 7
  * libclamav/elf.c: shutdown error message (bb#2318)
... ...
@@ -292,9 +292,11 @@ static int scanstdin(const struct cl_engine *engine, const struct optstruct *opt
292 292
     } else if(ret == CL_CLEAN) {
293 293
 	if(!printinfected)
294 294
 	    mprintf("stdin: OK\n");
295
-    } else
295
+    } else {
296 296
 	if(!printinfected)
297 297
 	    logg("stdin: %s ERROR\n", cl_strerror(ret));
298
+	info.errors++;
299
+    }
298 300
 
299 301
     unlink(file);
300 302
     free(file);