pkgsrc/mail/amavis-perl/patches/patch-amavis_av_clamavd
dholland 9d0cbdf46a Apply two bug fixes from Markus W Kilbinger in PR 24350:
- handle SIGCHLD properly
  - make the code for contacting clamavd work properly
2015-08-10 06:54:15 +00:00

15 lines
613 B
Text

$NetBSD: patch-amavis_av_clamavd,v 1.1 2015/08/10 06:54:16 dholland Exp $
Make this scanner fragment work like the other ones, from PR 24350.
--- amavis/av/clamavd~ 2003-02-25 10:42:54.000000000 +0000
+++ amavis/av/clamavd
@@ -15,7 +15,7 @@ if ($clamd) {
if ($output =~ /FOUND$/) { # no errors, a virus was found
$scanner_errors = 0;
@virusname = ($output =~ /: (.+) FOUND/g);
- return 1; # 'true' indicates virus found and stops further checking
+ do_virus();
} elsif ($output =~ /OK$/) { # no errors, no viruses
$scanner_errors = 0;
} elsif ($output =~ /ERROR$/) {