Patch to fix "Use of uninitialized value $SelfSigned in ... exim line 334"

Daniel Lewart <[email protected]> Mon, 4 Oct 2021 21:49:43 -0500
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <CALE_k2EgLmu9JYatzi5McdN=SqkMBYS9dVxOhafW8Dr8Rz49oQ@mail.gmail.com>
Logwatch Developers,

OS: Debian GNU/Linux 11 (bullseye)
Logwatch 7.5.5-1
Exim 4.94.2-7

Logwatch is reporting this:
    --------------------- EXIM Begin ------------------------
     Use of uninitialized value $SelfSigned in concatenation (.) or string at
     /usr/share/logwatch/scripts/services/exim line 334, <STDIN> line 383.
     --- Self-Signed Certificate in use (  Time(s))
      ---------------------- EXIM End -------------------------

Below is a one-line patch which fixes this.

Thank you!
Daniel Lewart
Urbana, Illinois

--- scripts/services/exim.orig    2020-09-07 15:43:26.000000000 -0500
+++ scripts/services/exim    2021-10-05 00:00:00.000000000 -0500
@@ -329,7 +329,7 @@
    }
 }

-if (@SelfSignedH) {
+if ($SelfSigned) {
    print "\n--- Self-Signed Certificate in use ($SelfSigned  Time(s))\n";

    if ($Detail >= $LvlMsgs) {