mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
registry: check for existence of key init_registry_key and possibly save a write.
Michael
This commit is contained in:
parent
207a0ece45
commit
3ab5a2f1b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user