[Bug 809753] [NEW] logwatch bug in postfix filter
Brezhonneg
809753 at bugs.launchpad.net
Wed Jul 13 07:41:42 UTC 2011
Public bug reported:
I am using logwatch 7.3.6.cvs20090906-1ubuntu4 on oneiric with postfix
2.8.3-1.
Logwatch is reporting quite a few errors while parsing postfix log
entries. Here is a complete list from my latest logwatch report:
--------------------- Postfix Begin ------------------------
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 3.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 10.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 25.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 31.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 37.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 43.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 49.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 72.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 112.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 118.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 134.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 147.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 153.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 159.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 189.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 195.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 201.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 214.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 220.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 226.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 233.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 240.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 247.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 257.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 279.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 285.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 291.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 297.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 303.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 309.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 317.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 326.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 331.
Use of uninitialized value $_[0] in reverse at /usr/share/logwatch/scripts/services/postfix line 254, <> line 336.
****** Summary *************************************************************************************
[rest of the logwatch log here]
Line 254 of /usr/share/logwatch/scripts/services/postfix is located in a sub called commify:
251 # Inserts commas in numbers for easier readability
252 #
253 sub commify ($) {
254 my $text = reverse $_[0];
255 $text =~ s/(\d\d\d)(?=\d)(?!\d*\.)/$1,/g;
256 return scalar reverse $text;
257 }
I know nothing about perl so I do not have the slightest idea of what is
wrong and how to fix...
** Affects: logwatch (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to logwatch in Ubuntu.
https://bugs.launchpad.net/bugs/809753
Title:
logwatch bug in postfix filter
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/809753/+subscriptions
More information about the Ubuntu-server-bugs
mailing list