diff options
author | Gregor Beck <gbeck@sernet.de> | 2011-11-07 13:31:26 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-11-25 13:24:34 +0100 |
commit | 3a2fd7c0e213e0fefed40eaa31a2282b126f2be4 (patch) | |
tree | 581f67059cfe09c81798e7b71176bf1ab252bc7f /source3/registry | |
parent | a719ce7c11c2c8c8b006c94b4559ef5e8addbc1a (diff) | |
download | samba-3a2fd7c0e213e0fefed40eaa31a2282b126f2be4.tar.gz samba-3a2fd7c0e213e0fefed40eaa31a2282b126f2be4.tar.bz2 samba-3a2fd7c0e213e0fefed40eaa31a2282b126f2be4.zip |
s3:registry: write INFO/version if we create registry.tdb
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_db.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 4d4aaeb4b5..b306b2cf39 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")); } |