summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2002-10-25 10:46:52 +0000
committerPeter Palfrader <peter@palfrader.org>2002-10-25 10:46:52 +0000
commit7a9b25a7a1202a3da71c22f34cd2f1efce64a586 (patch)
treeb63697824091916544f976ff9c9d790796302b2d
parentca2d99975ee78decc7e92e54f96cf1e8bf03aac4 (diff)
Only take default parameters if they are not set in pingd.conf (as opposed to set to undef)
-rw-r--r--Echolot/Config.pm4
-rw-r--r--NEWS4
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 <peter@palfrader.org>
-# $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).