#
# H+B EDV AntiVir
#

if ($antivir) {
    do_log(2,"Using $antivir");
    chop($output = `$antivir -allfiles -noboot -s -z $TEMPDIR/parts`);
    $errval = retcode($?);
    $scanner_errors &= $errval;
    do_log(2,$output);
    if ($errval) {
	if ($errval == 1) {
	    @virusname = ($output =~ /VIRUS: .* virus (.+)/ig);
	    do_virus();
	} else {
	    do_log(0,"Virus scanner failure: $antivir (error code: $errval)");
	}
    }
}
