Package: logwatch
Version: 7.3.6.cvs20080702-2
Severity: important
setting hostlimit=yes has no effect, for two reasons
1) The documentations and comments in the config file says to set hostlimit =
yes, but in actuality, you have to set it to the hostname
2) Even if you do this, a bug in the code that handles the nohostlimit override
allways nulls out the LOGWATCH_HOST_LIMIT environment variable.
in logwatch.pl around line 890 you have
#Hostlimit filter need to add ability to negate this use "NoHostFilter =
Yes" in logfile like samba -mgt
if ( ($Config{'hostlimit'}) && (!$LogFileData{$LogFile}{'nohostfilter'}) ) {
#Pass the list to ENV with out touching it
$ENV{'LOGWATCH_ONLY_HOSTNAME'} = $Config{'nohostlimit'};
$FilterText .= ("| $PerlVersion $BaseDir/scripts/shared/onlyhost");
}
so, if (hostlimit and ! nohostlimit), clobber LOGWATCH_ONLY_HOSTNAME and add
the filter to the chain
it should be
if(hostlimit)
if( nohostlimit )
clobber env
else
add filter
end if nohostlimit
end if hostlimit
-- System Information:
Debian Release: 5.0.8
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35.6 (SMP w/1 CPU core)
Locale: LANG=en_CA, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set
to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages logwatch depends on:
ii nullmailer [mail-transpo 1:1.04-1.1 simple relay-only mail transport a
ii perl 5.10.0-19lenny3 Larry Wall's Practical Extraction
Versions of packages logwatch recommends:
ii libdate-manip-perl 5.54-1 a perl library for manipulating da
Versions of packages logwatch suggests:
pn fortune-mod <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]