Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305527 - sys-apps/logwatch-7.3.7_pre20100211: sshd and postfix script are buggy
Summary: sys-apps/logwatch-7.3.7_pre20100211: sshd and postfix script are buggy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-17 13:10 UTC by Frédéric COIFFIER
Modified: 2010-02-17 20:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric COIFFIER 2010-02-17 13:10:33 UTC
logwatch-7.3.7_pre20100211 generates the following output for sshd:

 --------------------- SSHD Begin ------------------------ 

 syntax error at /usr/share/logwatch/scripts/services/sshd line 316, near ")
       ("
 syntax error at /usr/share/logwatch/scripts/services/sshd line 319, near "} elsif"
 Global symbol "$ThisLine" requires explicit package name at /usr/share/logwatch/scripts/services/sshd line 319.
 syntax error at /usr/share/logwatch/scripts/services/sshd line 324, near "}"
 Global symbol "$ThisLine" requires explicit package name at /usr/share/logwatch/scripts/services/sshd line 324.
 syntax error at /usr/share/logwatch/scripts/services/sshd line 329, near "}"
 syntax error at /usr/share/logwatch/scripts/services/sshd line 336, near "}"
 Can't use global $1 in "my" at /usr/share/logwatch/scripts/services/sshd line 369, near "{$1"
 syntax error at /usr/share/logwatch/scripts/services/sshd line 391, near "}"
 Unterminated <> operator at /usr/share/logwatch/scripts/services/sshd line 435.
 
 ---------------------- SSHD End -------------------------


I've modified these lines:
      ($ThisLine =~ m/^error: chan_shutdown_read failed for .+/)
      ($ThisLine =~ /Timeout, client not responding\./)
by
      ($ThisLine =~ m/^error: chan_shutdown_read failed for .+/) or
      ($ThisLine =~ m/Timeout, client not responding\./)
and that seems to solve the problem (but I'm not a Perl expert).

There is also a small problem with postfix script:
 --------------------- Postfix Begin ------------------------ 

 "-T" is on the #! line, it must also be used on the command line at /usr/share/logwatch/scripts/services/postfix line 1.
 
 ---------------------- Postfix End ------------------------- 

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =sys-apps/logwatch-7.3.7_pre20100211
2. /etc/cron.daily/00-logwatch
3. Check your emails
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-02-17 16:09:05 UTC
Please post the output of `emerge --info =sys-apps/logwatch-7.3.7_pre20100211' too.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2010-02-17 20:09:15 UTC
i've commited your fixes to a new snapshot. thanks
Comment 3 Jochen Schlick 2010-02-17 20:19:36 UTC
I have exactly the same problem (same output). The reason is perhaps the perl version that I use - dev-lang/perl-5.10.1