registry: skip writes of existing keys in init_registry_data().
authorMichael Adam <obnox@samba.org>
Tue, 29 Apr 2008 15:41:03 +0000 (17:41 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 30 Apr 2008 10:42:33 +0000 (12:42 +0200)
Michael
(This used to be commit 37dabf931727f00569725af0e34677d36bb7df99)

source3/registry/reg_backend_db.c

index 81f5edcb7b3b0fb78f308c96d1ea566eb403eafb..8ebe647a98ffb71776bf942640b9102d8312e810 100644 (file)
@@ -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;