#
# Trend FileScanner/Linux
#

if ($vscan) {
    do_log(2,"Using $vscan");
    chop($output = `$vscan -a $TEMPDIR/parts/*`);
    $errval = retcode($?);
    $scanner_errors &= $errval;
    do_log(2,$output);
    if ($errval) {
	if ($errval == 1 || $errval == 2) {
	    @virusname = ($output =~ /Found virus (.+) in/g);
	    do_virus();
	} else {
	    do_log(0,"Virus scanner failure: $vscan (error code: $errval)");
	}
    }
}
