#
# F-Secure Antivirus/Linux
#

if ($fsav) {
    do_log(2,"Using $fsav");
    chop($output = `$fsav --dumb --archive $TEMPDIR/parts`);
    $errval = retcode($?);
    $scanner_errors &= $errval;
    do_log(2,$output);
    if ($errval) {
	if ($errval == 3 || $errval == 8) {
	    @virusname = ($output =~ /infection: (.+)/g);
	    do_virus();
	} else {
	    do_log(0,"Virus scanner failure: $fsav (error code: $errval)");
	}
    }
}
