#
# Command AntiVirus for Linux
#

if ($csav) {
    do_log(2,"Using $csav");
    chop($output = `$csav -all -archive -packed $TEMPDIR/parts`);
    $errval = retcode($?);
    $scanner_errors &= $errval;
    do_log(2,$output);
    if ($errval != 50) {
	if ($errval >= 51 || $errval <= 53) {
	    @virusname = ($output =~ /Infection: (.+)/g);
	    do_virus();
	} else {
	    do_log(0,"Virus scanner failure: $csav (error code: $errval)");
	}
    }
}
