diff options
author | Michael Adam <obnox@samba.org> | 2008-04-29 17:41:03 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-30 12:42:33 +0200 |
commit | f50002b491d48b7694e32be1c6aeafb85d6da16f (patch) | |
tree | eb2220a436d114c53d64e4d8f4f1af69954f6d7c | |
parent | 9fe870affa2b19aeee8f45f05cc1407d448c3bf7 (diff) | |
download | samba-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)
-rw-r--r-- | source3/registry/reg_backend_db.c | 3 |
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; |