mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
registry: in regdb_init, not only complain about INFO/version, store it...
Michael
This commit is contained in:
parent
11da885f1e
commit
27d67365ad
@ -352,6 +352,14 @@ bool regdb_init(void)
|
||||
/* any upgrade code here if needed */
|
||||
DEBUG(10, ("regdb_init: got INFO/version = %d != %d\n",
|
||||
vers_id, REGVER_V1));
|
||||
if (dbwrap_store_int32(regdb, vstring, REGVER_V1) != 0) {
|
||||
DEBUG(0, ("regdb_init: error storing %s = %d\n",
|
||||
vstring, REGVER_V1));
|
||||
return false;
|
||||
} else {
|
||||
DEBUG(10, ("regdb_init: stored %s = %d\n",
|
||||
vstring, REGVER_V1));
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user