summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-29 17:41:03 +0200
committerMichael Adam <obnox@samba.org>2008-04-30 12:42:33 +0200
commitf50002b491d48b7694e32be1c6aeafb85d6da16f (patch)
treeeb2220a436d114c53d64e4d8f4f1af69954f6d7c /source3/registry
parent9fe870affa2b19aeee8f45f05cc1407d448c3bf7 (diff)
downloadsamba-f50002b491d48b7694e32be1c6aeafb85d6da16f.tar.gz
samba-f50002b491d48b7694e32be1c6aeafb85d6da16f.tar.bz2
samba-f50002b491d48b7694e32be1c6aeafb85d6da16f.zip
registry: skip writes of existing keys in init_registry_data().
Michael (This used to be commit 37dabf931727f00569725af0e34677d36bb7df99)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 81f5edcb7b..8ebe647a98 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -293,6 +293,9 @@ do_init:
/* loop over all of the predefined paths and add each component */
for (i=0; builtin_registry_paths[i] != NULL; i++) {
+ if (regdb_key_exists(builtin_registry_paths[i])) {
+ continue;
+ }
werr = init_registry_key_internal(builtin_registry_paths[i]);
if (!W_ERROR_IS_OK(werr)) {
goto fail;