[Bug 261131] [patch] security/clamassassin: a non-compliant email header is added if clamd is down

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 11 Jan 2022 21:55:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261131

            Bug ID: 261131
           Summary: [patch] security/clamassassin: a non-compliant email
                    header is added if clamd is down
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: martin@lispworks.com
                CC: chalpin@cs.wisc.edu
             Flags: maintainer-feedback?(chalpin@cs.wisc.edu)
                CC: chalpin@cs.wisc.edu

Created attachment 230933
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=230933&action=edit
Patch to clamassassin

The X-Virus-Checker-Version: header added by clamassassin contains a newline if
clamd is down.  This creates a non-compliant email header (because it doesn't
end with a colon).

The problem is that

CLAMVERS=`${CLAMSCAN} -V --stdout`

contains a newline due to clamdscan printing an extra line containing an error
message.

The attached patch fixes it, as suggested in:

https://lists.jameslick.com/pipermail/clamassassin-discuss/2015-June/000055.html

-- 
You are receiving this mail because:
You are the assignee for the bug.