#
# F-Secure Antivirus/Linux
#

if ($fsav) {
    do_log(2,"Using $fsav");
    chop($output = `$fsav --dumb --archive $TEMPDIR/parts`);
    $errval = retcode($?);
    do_log(2,$output);
    if ($errval == 0) {		# no errors, no viruses found
	$scanner_errors = 0;
    } elsif ($errval == 3 || $errval == 8) {	# no errors, viruses discovered
	$scanner_errors = 0;
	@virusname = ($output =~ /(?:infection|Infected): (.+)/g);
	@virusname = (undef)  if !@virusname;  # just in case: make list nonnil
	do_virus();
    } else {
	do_log(0,"Virus scanner failure: $fsav (error code: $errval)");
    }
}
