From df6b68b07352a7265a3b6197a9334df77e44d0d2 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 7 Apr 2008 22:49:11 +0200 Subject: 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 (This used to be commit c65575f831e9929ef7e66f2c7bfeed50f135b4b2) --- source3/lib/smbconf/smbconf_txt_simple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/lib/smbconf') diff --git a/source3/lib/smbconf/smbconf_txt_simple.c b/source3/lib/smbconf/smbconf_txt_simple.c index f734eab552..e87cd04d16 100644 --- a/source3/lib/smbconf/smbconf_txt_simple.c +++ b/source3/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); -- cgit