mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
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>
This commit is contained in:
parent
88fc7a74b5
commit
add8419783
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user