From 7a9b25a7a1202a3da71c22f34cd2f1efce64a586 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 25 Oct 2002 10:46:52 +0000 Subject: Only take default parameters if they are not set in pingd.conf (as opposed to set to undef) --- Echolot/Config.pm | 4 ++-- NEWS | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Echolot/Config.pm b/Echolot/Config.pm index 2e386b0..dcb48f4 100644 --- a/Echolot/Config.pm +++ b/Echolot/Config.pm @@ -1,7 +1,7 @@ package Echolot::Config; # (c) 2002 Peter Palfrader -# $Id: Config.pm,v 1.41 2002/09/21 03:24:41 weasel Exp $ +# $Id: Config.pm,v 1.42 2002/10/25 10:46:52 weasel Exp $ # =pod @@ -225,7 +225,7 @@ sub init($) { } for my $key (keys %$DEFAULT) { - $CONFIG->{$key} = $DEFAULT->{$key} unless defined $CONFIG->{$key}; + $CONFIG->{$key} = $DEFAULT->{$key} unless exists $CONFIG->{$key}; }; $CONFIG->{'homedir'} = $params->{'basedir'} unless (defined $CONFIG->{'homedir'}); $CONFIG->{'verbose'} = $params->{'verbose'} if ($params->{'verbose'}); diff --git a/NEWS b/NEWS index 7583de1..c820ba1 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +Changes in version 2.0.5 + * Only take default parameters if they are not set in + pingd.conf (as opposed to set to undef). + Changes in version 2.0.4 - 2002-10-16 * Fix pingd.conf(5) manpage a bit (indention levels). -- cgit v1.2.3