Skip to content

Commit

Permalink
libgpo: accept more boolean matches in gp_inifile_getbool().
Browse files Browse the repository at this point in the history
Guenther

Signed-off-by: Guenther Deschner <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
gd authored and jrasamba committed Sep 11, 2016
1 parent 88fc7a7 commit add8419
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libgpo/gpo_ini.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit add8419

Please sign in to comment.