summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarlosg <carlosg>2006-06-01 11:23:16 +0000
committercarlosg <carlosg>2006-06-01 11:23:16 +0000
commit763912e30fd278a35b810ef9ae44657590fe6803 (patch)
tree5db7c274fd6b05e1b2c7727a3892131d9ceea04f
parent55ea1be3118a67a562b5cf37cae904054006b05b (diff)
2006-06-01 Carlos Garnacho <carlosg@gnome.org>
* Utils/Replace.pm (set_init_bool): inverse logic to allow values != 1 to be TRUE
-rw-r--r--ChangeLog5
-rw-r--r--Utils/Replace.pm2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index aae0bbe..e0e9b1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-01 Carlos Garnacho <carlosg@gnome.org>
+
+ * Utils/Replace.pm (set_init_bool): inverse logic to allow values != 1
+ to be TRUE
+
2006-05-30 Carlos Garnacho <carlosg@gnome.org>
* Network/Hosts.pm (run_hostname), (get_fqdn_replace_table)
diff --git a/Utils/Replace.pm b/Utils/Replace.pm
index 5fa81d1..7c9cd66 100644
--- a/Utils/Replace.pm
+++ b/Utils/Replace.pm
@@ -680,7 +680,7 @@ sub set_ini_bool
{
my ($file, $section, $var, $value) = @_;
- $value = ($value == 1)? "yes": "no";
+ $value = ($value == 0)? "no": "yes";
return &set_ini ($file, $section, $var, $value);
}