Package: logcheck
Version: 1.4.5
Severity: normal

Dear Maintainer,

after upgrading to Bookworm (Debian 12) on every run of logcheck (from crontab) 
I receive an additional e-mail from cron where grep complains about RegEx 
starting with "?".

Subject:
Cron <logcheck@dom3> if [ ! -d /run/systemd/system ] && [ -x /usr/sbin/logcheck 
]; then nice -n10 /usr/sbin/logcheck; fi

Body of the e-mail:
grep: warning: ? at start of expression
grep: warning: ? at start of expression
grep: warning: ? at start of expression
grep: warning: ? at start of expression
grep: warning: ? at start of expression
grep: warning: ? at start of expression
grep: warning: ? at start of expression
grep: warning: ? at start of expression

This happens with the logcheck package from Trixie (Debian 13), too.

The behaviour is apparently related to the fact that grep now (i.e. since 
Bookworm) reacts more sensitively to the situation described (“? ” at the 
beginning of the RegEx), as stated in the release notes and announced by 
apt-listchanges.

But why does this happen with logcheck? I can't find any RegEx that starts with 
a question mark:

 # grep -r ^? /etc/logcheck/
 #

Any ideas?

Thanks & kind Regards,

Paul

-- System Information:
Debian Release: 12.12
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 
'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-40-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages logcheck depends on:
ii  adduser                                    3.134
ii  cron [cron-daemon]                         3.0pl1-162
ii  exim4-daemon-light [mail-transport-agent]  4.96-15+deb12u7
ii  lockfile-progs                             0.1.19
ii  logtail                                    1.4.5
ii  mime-construct                             1.12+really1.11-1

Versions of packages logcheck recommends:
ii  logcheck-database  1.4.5

Versions of packages logcheck suggests:
ii  rsyslog [system-log-daemon]  8.2302.0-1+deb12u1

-- Configuration Files:
/etc/logcheck/logcheck.logfiles.d/journal.logfiles changed [not included]

-- no debconf information

Reply via email to