summaryrefslogtreecommitdiff
path: root/source3/registry/reg_init_smbconf.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-20 14:08:29 +0100
committerMichael Adam <obnox@samba.org>2008-03-20 15:01:52 +0100
commit2f01e055cf0a8d49f1d732f03c7d2bebd8e123ae (patch)
tree0b31e527de931c3e93ce5e2d4ce90ec95e16352a /source3/registry/reg_init_smbconf.c
parent88801114667d13f0f7b4fbb289b1d004194a7f18 (diff)
downloadsamba-2f01e055cf0a8d49f1d732f03c7d2bebd8e123ae.tar.gz
registry: separate initialization of registry data from regdb_init().
Leave this to the users (currently registry_init_smbconf() and init_registry()) to initialize as much of preliminary registry data as needed. Michael (This used to be commit 59fdd30c789ccfd5cff356e459f1653b065b985c)
Diffstat (limited to 'source3/registry/reg_init_smbconf.c')
-rw-r--r--source3/registry/reg_init_smbconf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/registry/reg_init_smbconf.c b/source3/registry/reg_init_smbconf.c
index b7e6add1121..1b17852a7a1 100644
--- a/source3/registry/reg_init_smbconf.c
+++ b/source3/registry/reg_init_smbconf.c
@@ -84,6 +84,11 @@ bool registry_init_smbconf(void)
DEBUGADD(1, (".\n"));
goto done;
}
+ if (!init_registry_key(KEY_SMBCONF)) {
+ DEBUG(1, ("Could not initialize registry key '%s'\n",
+ KEY_SMBCONF));
+ goto done;
+ }
reghook_cache_init();
if (!reghook_cache_add(&smbconf_reg_hook)) {
DEBUG(1, ("Error adding smbconf reghooks to reghook cache.\n"));