Your message dated Tue, 26 Jul 2016 19:41:24 +0200
with message-id <[email protected]>
has caused the   report #824034,
regarding $ignore_services breaks on close parentheses
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
824034: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824034
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Hi,

here is a bug report with a proposed patch concerning the specification
of services to ignore in the secure script.

Bye
Willi


-------- Weitergeleitete Nachricht --------
Betreff: Bug#824034: $ignore_services breaks on close parentheses
Weitersenden-Datum: Wed, 11 May 2016 15:15:02 +0000
Weitersenden-Von: Jonny Lamb <[email protected]>
Weitersenden-An: [email protected]
Weitersenden-CC: Willi Mann <[email protected]>
Datum: Wed, 11 May 2016 16:12:53 +0100
Von: Jonny Lamb <[email protected]>
Antwort an: Jonny Lamb <[email protected]>, [email protected]
An: [email protected]

Package: logwatch
Version: 7.4.3-1
Severity: normal
Tags: patch

The "secure" script's $ignore_services option is space separated but
uses \b to match items, which breaks when a service name ends in a close
parenthesis (such as "wordpress(example.com)").

Here's a patch that fixes the problem here. Use a different approach if
you fancy.

Cheerio,
-- 
Jonny Lamb

diff --git a/scripts/services/secure b/scripts/services/secure
index 31f7ba6..387f5fd 100755
--- a/scripts/services/secure
+++ b/scripts/services/secure
@@ -190,7 +190,7 @@ while (defined($ThisLine = <STDIN>)) {
    $ThisLine =~ s/\[ID [0-9]+ [a-z]+\.[a-z]+\] //;
    my $temp = $ThisLine;
    $temp =~ s/^([^[:]+).*/$1/;
-   if ($Ignore =~ /\b\Q$temp\E\b/i) { next; }
+   if ($Ignore =~ /(\s|^)\Q$temp\E(\s|$)/i) { next; }
 
    #current sarge
    if ($ThisLine =~ /^[^ :]*:( [0-9:\[\]\.]+|) \(pam_(unix|securetty)\)/i ) 
{next; }

--- End Message ---

Reply via email to