#
# Command AntiVirus for Linux
#

if ($csav ne "") {
	$output = `$csav -all -archive -packed $TEMPDIR/parts`;
	$errval = ($? >> 8);
	do_log(2,$output);
	if ($errval != 50) {
		if ($errval >= 51 || $errval <= 53) {
			@virusname = ($output =~ /Infection: (.+)/g);
			do_virus($output);
		} else {
			do_log(0,"Virus scanner failure: $csav (error code: $errval)");
		}
	}
}
