Bug#344553: [Logcheck-devel] Bug#344553: logcheck: Fails silently to read config file

Todd Troxell ttroxell at debian.org
Sat Dec 31 12:16:24 UTC 2005


On Fri, Dec 23, 2005 at 08:21:53PM +0200, Markus Peuhkuri wrote:
> Package: logcheck
> Version: 1.2.42
> Severity: minor
> Tags: patch
> 
> Logcheck does not report any error if the config file is not readable
> or does not exists.  This may easily happen, as logcheck is run as
> logcheck user and while one is testing a new configuration on live
> system with running configuration intact.
> 
> Following fragment may help:
> 
>  # Now source the config file - before things that should not be changed
>  if [ -r $CONFFILE ]; then
> -       . $CONFFILE
> +       . $CONFFILE
> +else
> +    error "Config file $CONFFILE not exists or readable"
>  fi

The patch is greatly appreciated.  Thanks, Markus. Your change will be in the
next release.

-- 
Todd Troxell
http://rapidpacket.com/~xtat





More information about the Logcheck-devel mailing list