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

registry: untangle assignment and if-statement in regdb_init().

Michael
This commit is contained in:
Michael Adam 2008-03-20 14:24:12 +01:00
parent 59fdd30c78
commit 504058df97

View File

@ -329,8 +329,8 @@ bool regdb_init( void )
return true;
}
if ( !(regdb = db_open(NULL, state_path("registry.tdb"), 0, REG_TDB_FLAGS, O_RDWR, 0600)) )
{
regdb = db_open(NULL, state_path("registry.tdb"), 0, REG_TDB_FLAGS, O_RDWR, 0600);
if (!regdb) {
regdb = db_open(NULL, state_path("registry.tdb"), 0, REG_TDB_FLAGS, O_RDWR|O_CREAT, 0600);
if ( !regdb ) {
DEBUG(0,("regdb_init: Failed to open registry %s (%s)\n",