Since upgrading from sys-process/cronie-1.5.5-r1 to sys-process/cronie-1.5.7 Cronie produces a new log entry called CMDEND. Logwatch is not able to suppress this type of messages and is spamming the report with dozens of unmatched entry messages. Please fix this: --- /usr/share/logwatch/scripts/services/cron 2021-05-27 11:46:35.956154356 +0200 +++ /usr/share/logwatch/scripts/services/cron 2021-07-09 12:26:48.012291029 +0200 @@ -65,7 +65,7 @@ $ExecutedCommand{$PID} = {command=>$ThisLine, user=>$User}; } elsif ($ThisLine =~ s/^CMD FINISH \((.+)\)\s*$/$1/) { $Runs->{$User}->{$ThisLine}++; - } elsif ($ThisLine =~ s/^(END|CMD START) \((.+)\)\s*$/$1/) { + } elsif ($ThisLine =~ s/^(END|CMD START|CMDEND) \((.+)\)\s*$/$1/) { #Ignore for now, NetBSD users could get tricky with #How many commands started vs finished -mgt } elsif ($ThisLine =~ /ORPHAN \(no passwd entry\)/) { Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1941630
The Fedora patch is slightly different: https://src.fedoraproject.org/rpms/logwatch/blob/0ce995fb69af39c55a6b41797535b01d49eaf021/f/cron.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=761b2543dcb6023cbdabb7c45c17e2fb96baa3f7 commit 761b2543dcb6023cbdabb7c45c17e2fb96baa3f7 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-07-23 17:37:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-07-23 17:38:48 +0000 sys-apps/logwatch: add 7.5.6 Closes: https://bugs.gentoo.org/801304 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/logwatch/Manifest | 1 + sys-apps/logwatch/logwatch-7.5.6.ebuild | 95 +++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+)