diff options
author | Michael Adam <obnox@samba.org> | 2008-04-07 22:49:11 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-10 01:28:57 +0200 |
commit | df6b68b07352a7265a3b6197a9334df77e44d0d2 (patch) | |
tree | 2a2b80d3d93ba159e1d4807737b85e605dd28c03 /source3/lib | |
parent | 101587eb6e52ac41821c18a931a5b2aee49f3af5 (diff) | |
download | samba-df6b68b07352a7265a3b6197a9334df77e44d0d2.tar.gz samba-df6b68b07352a7265a3b6197a9334df77e44d0d2.tar.bz2 samba-df6b68b07352a7265a3b6197a9334df77e44d0d2.zip |
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)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/smbconf/smbconf_txt_simple.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |