1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

registry: skip writes of existing keys in init_registry_data().

Michael
This commit is contained in:
Michael Adam 2008-04-29 17:41:03 +02:00
parent 7c5f1583cb
commit 37dabf9317

View File

@ -293,6 +293,9 @@ do_init:
/* loop over all of the predefined paths and add each component */ /* loop over all of the predefined paths and add each component */
for (i=0; builtin_registry_paths[i] != NULL; i++) { 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]); werr = init_registry_key_internal(builtin_registry_paths[i]);
if (!W_ERROR_IS_OK(werr)) { if (!W_ERROR_IS_OK(werr)) {
goto fail; goto fail;