mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Make regdb_init() behave like regdb_open() when registry is already opened.
I.e. increment the refcounter. Michael
This commit is contained in:
parent
a0b12f4d81
commit
951d3fae2c
@ -258,8 +258,11 @@ bool regdb_init( void )
|
||||
const char *vstring = "INFO/version";
|
||||
uint32 vers_id;
|
||||
|
||||
if ( tdb_reg )
|
||||
if ( tdb_reg ) {
|
||||
DEBUG(10,("regdb_init: incrementing refcount (%d)\n", tdb_refcount));
|
||||
tdb_refcount++;
|
||||
return true;
|
||||
}
|
||||
|
||||
if ( !(tdb_reg = tdb_wrap_open(NULL, state_path("registry.tdb"), 0, REG_TDB_FLAGS, O_RDWR, 0600)) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user