Bug#278337: [Logcheck-devel] Bug#278337: Acknowledgement (logcheck: perdition adds extra spaces on SOME syslog messages)

maks attems debian at sternwelten.at
Wed Oct 27 17:09:22 UTC 2004


tags 278337 pending
thanks

On Tue, 26 Oct 2004, brendon at brendon.com wrote:

> I noticed snmpd was also reporting messages it shouldn't have. So logcheck
> WAS removing trailing spaces from syslog lines. One line was changed from
> 1.28 to 1.29 and that seems to be the problem.
> 
> 632c632
> < $SORT -m $TMPDIR/logoutput/* | uniq | sed -e 's/ *$//' | cat  \
> ---
> > $SORT $TMPDIR/logoutput/* | sed -e 's/[[:space:]]+$//' | cat  \
> 
> So, ignore my previous post. Don't change the logcheck rule. Patch
> logcheck. Here is a solution that works.
> 
> 632c632
> < $SORT $TMPDIR/logoutput/* | sed -e 's/[[:space:]]+$//' | cat  \
> ---
> > $SORT $TMPDIR/logoutput/* | sed -e 's/[[:space:]]*$//' | cat  \

thanks, confirmed:
$ echo "foo " | sed -e 's/[[:space:]]*$//' | egrep -v "^foo$"
$ echo "foo " | sed -e 's/[[:space:]]+$//' | egrep -v "^foo$"
foo 

fixed in current cvs.

--
maks






More information about the Logcheck-devel mailing list