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

2022-10-09 Thread Richard Lewis
On Tue, 27 Sep 2022, 09:27 Stefano Callegari,  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!



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

2022-09-27 Thread Stefano Callegari
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 
To: r...@g5045.stecalle.uff
Subject: Cron 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  

-- 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