summaryrefslogtreecommitdiff
path: root/libgpo/gpo_ini.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2016-09-14 18:13:39 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-01-06 16:16:01 +0100
commitc586c3d962e8ee57e90f76147b458e1bea0ed988 (patch)
tree0c6a7f68b147a3ba72fc5d864ff99d0be8e2c8a9 /libgpo/gpo_ini.c
parent7eeb2edc5060b03efa7166017e5b2a36af5b7f75 (diff)
downloadsamba-c586c3d962e8ee57e90f76147b458e1bea0ed988.tar.gz
libgpo: allow empty values in gp inifile parsing code.
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Jan 6 16:16:02 CET 2017 on sn-devel-144
Diffstat (limited to 'libgpo/gpo_ini.c')
-rw-r--r--libgpo/gpo_ini.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libgpo/gpo_ini.c b/libgpo/gpo_ini.c
index 95673bce13a..198e8afc1ec 100644
--- a/libgpo/gpo_ini.c
+++ b/libgpo/gpo_ini.c
@@ -377,10 +377,11 @@ NTSTATUS gp_inifile_init_context_direct(TALLOC_CTX *mem_ctx,
goto failed;
}
- rv = pm_process(tmp_filename != NULL ? tmp_filename : unix_path,
- change_section,
- store_keyval_pair,
- gp_ctx);
+ rv = pm_process_with_flags(tmp_filename != NULL ? tmp_filename : unix_path,
+ true,
+ change_section,
+ store_keyval_pair,
+ gp_ctx);
if (rv != 0) {
return NT_STATUS_NO_SUCH_FILE;
}