From 3a2fd7c0e213e0fefed40eaa31a2282b126f2be4 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Mon, 7 Nov 2011 13:31:26 +0100 Subject: s3:registry: write INFO/version if we create registry.tdb Signed-off-by: Michael Adam --- source3/registry/reg_backend_db.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 4d4aaeb4b54..b306b2cf390 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -656,6 +656,13 @@ WERROR regdb_init(void) return werr; } + werr = regdb_store_regdb_version(regdb, REGDB_CODE_VERSION); + if (!W_ERROR_IS_OK(werr)) { + DEBUG(1, ("regdb_init: Failed to store version: %s\n", + win_errstr(werr))); + return werr; + } + DEBUG(10,("regdb_init: Successfully created registry tdb\n")); } -- cgit