summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-08-28 02:06:25 +0000
committerAndrew Tridgell <tridge@samba.org>2000-08-28 02:06:25 +0000
commitbbc7918ad07c179729c41ed839a5a9afae91f2dc (patch)
tree388c52a6bcb6e0b1aa0c27a5d1c134cfc799e2ec /source3
parentace6739f5e8b9cc3139c5ea1d42ab481856dd4c5 (diff)
downloadsamba-bbc7918ad07c179729c41ed839a5a9afae91f2dc.tar.gz
samba-bbc7918ad07c179729c41ed839a5a9afae91f2dc.tar.bz2
samba-bbc7918ad07c179729c41ed839a5a9afae91f2dc.zip
arrgh.
whoever added "auto" parameters in loadparam only supported "True", "False" and "Auto", and did not support "Yes" and "No" like booleans. This means anyone using "preferred master = yes" didn't get what they expected! (This used to be commit 311a4dfb9a9a39a54dcb47d83e1604ad7461dce4)
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 0ed1dad1f7..957ba88011 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -573,7 +573,11 @@ static struct enum_list enum_case[] = {
static struct enum_list enum_bool_auto[] = {
{False, "False"},
+ {False, "No"},
+ {False, "0"},
{True, "True"},
+ {True, "Yes"},
+ {True, "1"},
{Auto, "Auto"},
{-1, NULL}
};