diff options
Diffstat (limited to 'source3/registry/reg_backend_db.c')
-rw-r--r-- | source3/registry/reg_backend_db.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 33454c90645..e10cfb520ba 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -201,6 +201,10 @@ WERROR init_registry_key(const char *add_path) { WERROR werr; + if (regdb_key_exists(add_path)) { + return WERR_OK; + } + if (regdb->transaction_start(regdb) != 0) { DEBUG(0, ("init_registry_key: transaction_start failed\n")); return WERR_REG_IO_FAILURE; |