Stas Degteff
2011-Feb-05  08:48 UTC
[Logcheck-devel] Bug#612046: RE-patterns in logcheck rules is contain unescaped point char ("any symbol") in many places
Package: logcheck
Version: 1.2.69
Severity: normal
Many, very many logcheck rules is contain the point character (.) without
escaping character
(\).
Example: /etc/logcheck/ignore.d.server/sendmail contain following line (1st line
in file):
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ (sendmail|sm-(mta|msp|que))\[[0-9]+\]:
starting daemon
--------------------^
This point is unescaped and treated as any character. Because this point
enclosed into
square brackets, all another RE elements in these brackets does nothing, and
specified
RE-line is equivalented with following RE:
^\w{3} [ :0-9]{11} .+ (sendmail|sm-(mta|msp|que))\[[0-9]+\]: starting daemon
To fix, it is needed to escape point char:
^\w{3} [ :0-9]{11} [\._[:alnum:]-]+ (sendmail|sm-(mta|msp|que))\[[0-9]+\]:
starting daemon
Errors like this discovered in each logcheck rules file!
-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages logcheck depends on:
ii  adduser            3.110                 add and remove users and groups
ii  bsd-mailx [mailx]  8.1.2-0.20071201cvs-3 A simple mail user agent
ii  cron               3.0pl1-105            management of regular background p
ii  lockfile-progs     0.1.11-0.1            Programs for locking and unlocking
ii  logtail            1.2.69                Print log file lines that have not
ii  rsyslog [system-lo 3.18.6-4              enhanced multi-threaded syslogd
ii  sendmail-bin [mail 8.14.3-5              powerful, efficient, and scalable 
Versions of packages logcheck recommends:
ii  logcheck-database             1.2.69     database of system log rules for t
Versions of packages logcheck suggests:
pn  syslog-summary                <none>     (no description available)
-- no debconf information
Debian Bug Tracking System
2011-Feb-06  21:09 UTC
[Logcheck-devel] Bug#612046: marked as done (RE-patterns in logcheck rules is contain unescaped point char ("any symbol") in many places)
Your message dated Sun, 6 Feb 2011 22:05:15 +0100
with message-id <20110206210515.GA31069 at df7cb.de>
and subject line Re: Bug#612046: RE-patterns in logcheck rules is contain
unescaped point char ("any symbol") in many places
has caused the Debian Bug report #612046,
regarding RE-patterns in logcheck rules is contain unescaped point char
("any symbol") in many places
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(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 owner at bugs.debian.org
immediately.)
-- 
612046: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612046
Debian Bug Tracking System
Contact owner at bugs.debian.org with problems
-------------- next part --------------
An embedded message was scrubbed...
From: Stas Degteff <g_nospam at grumbler.org>
Subject: RE-patterns in logcheck rules is contain unescaped point char
("any symbol")
 in many places
Date: Sat, 05 Feb 2011 13:48:50 +0500
Size: 3984
URL:
<http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20110206/af70250f/attachment.eml>
-------------- next part --------------
An embedded message was scrubbed...
From: Christoph Berg <myon at debian.org>
Subject: Re: Bug#612046: RE-patterns in logcheck rules is contain unescaped
 point char ("any symbol") in many places
Date: Sun, 6 Feb 2011 22:05:15 +0100
Size: 3951
URL:
<http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20110206/af70250f/attachment-0001.eml>