summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-20 14:33:43 +0100
committerMichael Adam <obnox@samba.org>2008-03-20 15:01:52 +0100
commitcef4e1bd9e3662617146117d91ba30b8695550b8 (patch)
tree99e27f5ad0eb9f2e033d3504a949ef66f763c5db /source3/registry
parent4bac0e505fa99f9843fc742e4807a1e2c4cf8b20 (diff)
downloadsamba-cef4e1bd9e3662617146117d91ba30b8695550b8.tar.gz
samba-cef4e1bd9e3662617146117d91ba30b8695550b8.tar.bz2
samba-cef4e1bd9e3662617146117d91ba30b8695550b8.zip
registry: in regdb_init, not only complain about INFO/version, store it...
Michael (This used to be commit 27d67365ad03f0a0cd86011758a122a97513b82e)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 23b59aa284..10f97c06ec 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/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;