From 661d569aa9f37f8e9eb5a24d01415bba49ce066a Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Fri, 17 May 2019 14:45:45 +0200 Subject: [PATCH] avast: change 'scan' invocation 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 --- PMG/Utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PMG/Utils.pm b/PMG/Utils.pm index 473a88f..a33ea90 100644 --- a/PMG/Utils.pm +++ b/PMG/Utils.pm @@ -459,7 +459,7 @@ sub analyze_virus_avast { "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 = ''; -- 2.39.2