git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11da885
)
registry: in regdb_init, not only complain about INFO/version, store it...
author
Michael Adam
<obnox@samba.org>
Thu, 20 Mar 2008 13:33:43 +0000
(14:33 +0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 20 Mar 2008 14:01:52 +0000
(15:01 +0100)
Michael
source/registry/reg_backend_db.c
patch
|
blob
|
history
diff --git
a/source/registry/reg_backend_db.c
b/source/registry/reg_backend_db.c
index 23b59aa284cfa1350851318153818328d8ba206b..10f97c06ec53b291e6bf3d90083248e48fcffd5a 100644
(file)
--- a/
source/registry/reg_backend_db.c
+++ b/
source/registry/reg_backend_db.c
@@
-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;