#
# McAfee
# 

if ($uvscan) {
    do_log(2,"Using $uvscan");
    chop($output = `$uvscan --secure -rv --summary --noboot $TEMPDIR/parts`);
    $errval = retcode($?);
    do_log(2,$output);
    if ($errval == 0) {			# no errors, no viruses found
	$scanner_errors = 0;
    } elsif ($errval == 13) {		# no errors, viruses discovered
	$scanner_errors = 0;
	my $loutput = $output;
	$loutput =~ s/Found: (.+) NOT a/Found the $1/g;
	$loutput =~ s/Found the (.+) trojan/Found the $1 virus/g;
	$loutput =~ s/Found virus or variant (.+) /Found the $1 virus/g;
	@virusname = ($loutput =~ /Found the (.+) virus/g);
	return 1;  # 'true' indicates virus found and stops further checking
    } else {
	do_log(0,"Virus scanner failure: $uvscan (error code: $errval)");
    }
}
