From ed18f87a55c6ae2e17f935542cb8be1683abb018 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 7 Apr 2008 22:49:11 +0200 Subject: [PATCH] libsmbconf: activate the verbatim-flag in text backend: store parameters as they come. with verbatim == true, parameters are stored as they come from the input file, duplicates are listed multiple times, etc. Michael (cherry picked from commit c65575f831e9929ef7e66f2c7bfeed50f135b4b2) --- source/lib/smbconf/smbconf_txt_simple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/lib/smbconf/smbconf_txt_simple.c b/source/lib/smbconf/smbconf_txt_simple.c index f734eab5528..e87cd04d16f 100644 --- a/source/lib/smbconf/smbconf_txt_simple.c +++ b/source/lib/smbconf/smbconf_txt_simple.c @@ -129,7 +129,8 @@ static bool smbconf_txt_do_parameter(const char *param_name, param_values = cache->param_values[cache->current_share]; num_params = cache->num_params[cache->current_share]; - if (smbconf_find_in_array(param_name, param_names, num_params, &idx)) + if (!(tpd->verbatim) && + smbconf_find_in_array(param_name, param_names, num_params, &idx)) { TALLOC_FREE(param_values[idx]); param_values[idx] = talloc_strdup(cache, param_value); -- 2.11.4.GIT