Bug#259371: [Logcheck-devel] Bug#259371: Uninitialized values reported when running logtail.

maks attems debian at sternwelten.at
Thu Jul 15 15:14:45 UTC 2004


clone 259371 -1
reassign -1 fiaf
retitle -1 fiaf invokes logtail withou -o switch for the offsetfile
tags 259371 pending
thanks


On Thu, 15 Jul 2004, Greg Kochanski wrote:

> I'm sorry! Did I forget to include the error message?
> 
> Here it is:
> 
> /etc/cron.daily/fiaif-scan:
> Use of uninitialized value in -f at /usr/sbin/logtail line 38.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/sbin/logtail line 39.
> 
> 
> 
> My guess is that fiaif calls logtail without the required -f flag.
> If so, it's a fiaif bug  combined with a missing error check in logtail.
> 
> /usr/sbin/logtail doesn't check that $opts{f} exists before handing it
> to -f.

yeeah thats really bad behaviour from logtail, corrected in cvs:
$ src/logtail 
 No logfile to read. Use -f switch.

will be in next version of logtail.

never the less fiaif uses the -f switch,
but don't use the -o switch from logtail for the offset file.
there for i'm duplicating the bug to fiaif.
uups logtail(8) misses the switch in the intro,
i'll correct that too for the next release.
belows patch should help fiaif-scan.

a++ maks


--- debian/fiaif-scan.orig	2004-07-15 17:09:17.000000000 +0200
+++ debian/fiaif-scan	2004-07-15 17:09:29.000000000 +0200
@@ -1,4 +1,4 @@
 #!/bin/sh
 # put this file in /etc/cron.daily to receive daily firewall logs
-/usr/sbin/logtail -f /var/log/syslog /var/log/syslog.fiaif.offset | \
+/usr/sbin/logtail -f /var/log/syslog -o /var/log/syslog.fiaif.offset | \
   /usr/sbin/fiaif-scan -n


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20040715/49396f74/attachment.pgp 


More information about the Logcheck-devel mailing list