Red Hat Bugzilla – Bug 87483
logwatch behaves on my "cgs-new" host.
Last modified: 2007-04-18 12:52:29 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020913
Description of problem:
logwatch dumps all of the entries from /var/log/cron into my admin
mailbox. Upon closer inspection, I found this regexp in
"s/^... .. ..:..:.. \w+ \w+\[\d+\]: \((\S+)\)\s+//"
This fails on my computer because the first \w doesn't match the "-" sign in my
hostname. Replacing it with [\w-] is also incorrect (but works for me :-)
because, AFAIR, DNS documentation says host names should comprise of
[a-zA-Z0-9-] (note no underscore). So the correct
regex would probably have [a-zA-Z0-9-]+ instead of the first \w.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.set the hostname to something with - .
2.let some cron jobs trickle into the log