WERROR smbconf_init_txt_simple(TALLOC_CTX *mem_ctx,
struct smbconf_ctx **conf_ctx,
- const char *path);
+ const char *path
+ bool verbatim);
/*
* the smbconf API functions
struct txt_private_data {
struct txt_cache *cache;
uint64_t csn;
+ bool verbatim;
};
/**********************************************************************
*/
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;
}
DEBUG(3,("net_conf_import: reading configuration from file %s.\n",
filename));
- werr = smbconf_init_txt_simple(mem_ctx, &txt_ctx, filename);
+ werr = smbconf_init_txt_simple(mem_ctx, &txt_ctx, filename, true);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}