summaryrefslogtreecommitdiff
path: root/libgpo/gpo_ini.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2016-09-08 21:28:22 +0200
committerJeremy Allison <jra@samba.org>2016-09-11 19:57:26 +0200
commitadd8419783e76dee165feea9093571bd534bcfa1 (patch)
treea59715069c8c445d905aef42311bdc9050037f47 /libgpo/gpo_ini.c
parent88fc7a74b5834c03f1f5947297df5effa414ee70 (diff)
downloadsamba-add8419783e76dee165feea9093571bd534bcfa1.tar.gz
libgpo: accept more boolean matches in gp_inifile_getbool().
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libgpo/gpo_ini.c')
-rw-r--r--libgpo/gpo_ini.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgpo/gpo_ini.c b/libgpo/gpo_ini.c
index a91bb9217ca..c0276122922 100644
--- a/libgpo/gpo_ini.c
+++ b/libgpo/gpo_ini.c
@@ -197,12 +197,14 @@ NTSTATUS gp_inifile_getbool(struct gp_inifile_context *ctx, const char *key, boo
return result;
}
- if (strequal(value, "Yes")) {
+ if (strequal(value, "Yes") ||
+ strequal(value, "True")) {
if (ret) {
*ret = true;
}
return NT_STATUS_OK;
- } else if (strequal(value, "No")) {
+ } else if (strequal(value, "No") ||
+ strequal(value, "False")) {
if (ret) {
*ret = false;
}