#
# H+B EDV AntiVir
#

if ($antivir ne "") {
	$output = `$antivir -allfiles -noboot -s -z $TEMPDIR/parts`;
	$errval = ($? >> 8);
	do_log(2,$output);
	if ($errval != 0) {
		if ($errval == 1) {
			@virusname = ($output =~ /Virus: .* virus (.+)/g);
			do_virus($output);
		} else {
			do_log(0,"Virus scanner failure: $antivir (error code: $errval)");
		}
	}
}
