Re: 9 Debian patches for inclusion

Willi Mann <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Mike Tremaine wrote:

> Interesting...
> 
> I guess this is the bug report
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536472
> 
> The issue seems to be that logrotate gzips the file before logwatch gets
> to it? Under RH/Fedora  et al the cron is always labled 0logwatch is it
> fires first. When I set crons by hand I make sure it runs before any
> rotation so the question is what to do with an issue that is really
> mis-configuration.??

Hi!

Yes, that's the bug report. The problem is that logwatch only expects 
logfiles to be compressed if they were declared via Archive, not via 
Logfile. My hack moves compressed logfiles to archives, which works as 
$Config{archives} is on by default. The proper way to handle this would 
probably be to first collect all filenames (as specified Logfiles plus 
Archives if selected), sort them, apply unique filter and then decide 
whether decompressing is required, but such a change would require bigger 
changes. 
 
WM


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.