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

registry: check for existence of key init_registry_key and possibly save a write.

Michael
(This used to be commit 3ab5a2f1b3)
This commit is contained in:
Michael Adam 2008-04-29 17:18:26 +02:00
parent 6ec4c8631a
commit ed6a9edb1e

View File

@ -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;