[Logwatch] pre3.1 hangs in samba/applydate

Kenneth Porter shiva@sewingwitch.com
16 May 2002 20:57:10 -0700


On Tue, 2002-05-14 at 14:05, Stephen Gower wrote:
> On Tue, May 14, 2002 at 12:56:56PM -0700, Kenneth Porter wrote:
> > I've installed pre3.1 on two different systems, one RH7.2 and one RH7.3,
> > and both hang in samba/applydate.
> 
>   Not wishing to be all AOL, but me too (RH 7.2)!
>   
>   Is anyone not seeing this?  If so can we compare setups and see
>   what's different?

Here's a patch. The script is designed to work with logs that use
continuation lines, but it wasn't allowing for log files that had a date
that didn't match the pattern, so it hung on the first log line.

--- applydate.original	Mon May 13 14:18:25 2002
+++ applydate	Thu May 16 20:51:32 2002
@@ -69,4 +69,7 @@
       }
       print "\n";
    }
+   else {
+      $ThisLine = <STDIN>;
+   }
 }