Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1020827: grep: warning: stray \ befor ...

429 views
Skip to first unread message

Stefano Callegari

unread,
Sep 27, 2022, 4:30:04 AM9/27/22
to
Package: logcheck
Version: 1.3.24
Severity: normal

Dear Maintainer,

after was solved this one

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019335

I have an email like this every cron

From: Cron Daemon <ro...@G5045.stecalle.uff>
To: ro...@G5045.stecalle.uff
Subject: Cron <logcheck@G5045> if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi

grep: warning: stray \ before !
grep: warning: stray \ before "
grep: warning: stray \ before "
grep: warning: stray \ before &
grep: warning: stray \ before "
grep: warning: stray \ before "
grep: warning: stray \ before "

and many more lines.

However logcheck seems work well (I have the email of the logs too).

Thanks

Stefano

-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (903, 'unstable'), (500, 'testing'), (400, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:it
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages logcheck depends on:
ii adduser 3.129
ii cron [cron-daemon] 3.0pl1-149
ii lockfile-progs 0.1.19
ii logtail 1.3.24
ii mime-construct 1.11+nmu3
ii postfix [mail-transport-agent] 3.6.4-1+b3
ii rsyslog [system-log-daemon] 8.2208.0-1

Versions of packages logcheck recommends:
ii logcheck-database 1.3.24

Versions of packages logcheck suggests:
pn syslog-summary <none>

-- Configuration Files:
/etc/logcheck/logcheck.conf [Errno 13] Permesso negato: '/etc/logcheck/logcheck.conf'
/etc/logcheck/logcheck.logfiles [Errno 13] Permesso negato: '/etc/logcheck/logcheck.logfiles'

-- no debconf information

Richard Lewis

unread,
Oct 9, 2022, 1:00:03 PM10/9/22
to
On Tue, 27 Sep 2022, 09:27 Stefano Callegari, <ste.ca...@tiscali.it> wrote:

> I have an email like this every cron

> grep: warning: stray \ before !
> grep: warning: stray \ before "
> grep: warning: stray \ before "
> grep: warning: stray \ before &
> grep: warning: stray \ before "
> grep: warning: stray \ before "
> grep: warning: stray \ before "
>
> and many more lines.

Think this is an issue in the rules shipped by debian - there have
been some unwanted backslashes in some rules files for ages, and
apparently grep has started warning about these. The rules should
only quote things that are special for regular expressions, so +, ., *
( etc, but not other characters

The patch in https://salsa.debian.org/debian/logcheck/-/merge_requests/14
should fix these - please review!

Thomas Dorner

unread,
Oct 14, 2022, 3:30:03 AM10/14/22
to
Package: logcheck-database
Version: 1.3.24
Followup-For: Bug #1020827
X-Debbugs-Cc: debia...@th-dorner.de

Dear Maintainer,

same here, I've patched it locally and just wanted to supply the patch.

Hmm, I've just noticed, there actually already seems to be one. I send
this nonetheless.

-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
logcheck-database.patch

Richard Lewis

unread,
Oct 14, 2022, 6:10:03 PM10/14/22
to
control: tags -1 +patch

On Fri, 14 Oct 2022, 08:24 Thomas Dorner, <debia...@th-dorner.de> wrote:

> same here, I've patched it locally and just wanted to supply the patch.
>
> Hmm, I've just noticed, there actually already seems to be one. I send
> this nonetheless.

Hi Thomas - i provided the previous patch: you found a couple more
instances that i missed (the \/ in ignore.s.server/samba and
ignore.d.workstation/kernel):
I've updated https://salsa.debian.org/debian/logcheck/-/merge_requests/14
to include your work as well -

Jose, as the debian maintainer are you able to review and push a fix
into the repository? (you could also credit Thomas in the changelog,
which isnt updated in the merge request. The merge request applies to
1.3.24 as i wasnt sure if the other commits in the master branch (ie
adding an empty package) were ready for release - but can rebase if
you want?)

This bug is going to be really annoying, so it would be awesome if it
could be fixed

Cheers!
0 new messages