Change the invocation of avast's 'scan' executable from a hardcoded '/bin/scan'
to 'scan', so that it checks for the executable in the PATH.
The hardcoded path became apparent, while testing the new upstream release
of avast (3.0.1), where 'scan' got moved from '/bin/scan' to '/usr/bin/scan'
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
"virus analyze (avast) failed: ERROR";
};
- open(my $cmd, '-|', '/bin/scan', $dname) ||
+ open(my $cmd, '-|', 'scan', $dname) ||
die "$queue->{logid}: can't exec avast scan: $! : ERROR";
my $response = '';