[pmg-devel] [PATCH pmg-api] avast: change 'scan' invocation

Christian Heutger christian at heutger.net
Mon Jul 1 19:48:33 CEST 2019


Ah, sorry, many thanks.

About my milter adjustments, I would provide a bounty for implementation as would help me very much and keep my installation updateable.

Grüße
Christian

>> Am 01.07.2019 um 17:52 schrieb Thomas Lamprecht <t.lamprecht at proxmox.com>:
>> 
>> On 5/17/19 2:45 PM, Stoiko Ivanov wrote:
>> 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 at proxmox.com>
>> ---
>> 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 = '';
> 
> applied, thanks!
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2348 bytes
Desc: not available
URL: <http://pve.proxmox.com/pipermail/pmg-devel/attachments/20190701/d5334c94/attachment.bin>


More information about the pmg-devel mailing list