1
0
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:
Michael Adam 2008-02-19 01:04:31 +01:00
parent a0b12f4d81
commit 951d3fae2c

View File

@ -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)) )
{