loadparm: use the new smbconf_init() dispatcher for loading registry config.
authorMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 15:22:52 +0000 (17:22 +0200)
committerMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 18:04:44 +0000 (20:04 +0200)
Michael
(This used to be commit 78afb30f8073c3804dfa0cecadf973d5af5dd612)

source3/param/loadparm.c

index 27bf1e8ce18c00a3eaa7ff8205e9adf24e945a38..d5fd571ce40a945fba08ac75cf969751f349ca8d 100644 (file)
@@ -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)));