summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf/smbconf_txt_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/smbconf/smbconf_txt_simple.c')
-rw-r--r--source3/lib/smbconf/smbconf_txt_simple.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/lib/smbconf/smbconf_txt_simple.c b/source3/lib/smbconf/smbconf_txt_simple.c
index 8c831f9f81..9a3bc784eb 100644
--- a/source3/lib/smbconf/smbconf_txt_simple.c
+++ b/source3/lib/smbconf/smbconf_txt_simple.c
@@ -40,6 +40,7 @@ struct txt_cache {
struct txt_private_data {
struct txt_cache *cache;
uint64_t csn;
+ bool verbatim;
};
/**********************************************************************
@@ -514,7 +515,16 @@ static struct smbconf_ops smbconf_ops_txt = {
*/
WERROR smbconf_init_txt_simple(TALLOC_CTX *mem_ctx,
struct smbconf_ctx **conf_ctx,
- const char *path)
+ const char *path,
+ bool verbatim)
{
- return smbconf_init(mem_ctx, conf_ctx, path, &smbconf_ops_txt);
+ WERROR werr;
+
+ werr = smbconf_init(mem_ctx, conf_ctx, path, &smbconf_ops_txt);
+ if (!W_ERROR_IS_OK(werr)) {
+ return werr;
+ }
+
+ pd(*conf_ctx)->verbatim = verbatim;
+ return WERR_OK;
}