From: Michael Adam Date: Sun, 13 Apr 2008 15:22:52 +0000 (+0200) Subject: loadparm: use the new smbconf_init() dispatcher for loading registry config. X-Git-Tag: samba-3.3.0pre1~2676 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78afb30f8073c3804dfa0cecadf973d5af5dd612;p=thirdparty%2Fsamba.git loadparm: use the new smbconf_init() dispatcher for loading registry config. Michael --- diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 27bf1e8ce18..d5fd571ce40 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -6498,7 +6498,7 @@ static bool process_registry_globals(bool (*pfunc)(const char *, const char *, v if (conf_ctx == NULL) { /* first time */ - werr = smbconf_init_reg(NULL, &conf_ctx, NULL); + werr = smbconf_init(NULL, &conf_ctx, "registry:"); if (!W_ERROR_IS_OK(werr)) { goto done; } @@ -6608,7 +6608,7 @@ bool lp_file_list_changed(void) if (lp_config_backend_is_registry()) { if (conf_ctx == NULL) { WERROR werr; - werr = smbconf_init_reg(NULL, &conf_ctx, NULL); + werr = smbconf_init(NULL, &conf_ctx, "registry:"); if (!W_ERROR_IS_OK(werr)) { DEBUG(0, ("error opening configuration: %s\n", dos_errstr(werr)));