From 9b46798b1191ec88a3776b52aea7eb2e962f6ac7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 24 Aug 2011 01:13:47 +0200 Subject: s3:registry: fix the v1_to_v2 upgrade code so that it does not normalize the INFO/version key ... --- source3/registry/reg_backend_db.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3') diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 2a52042079..13bf342989 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -382,6 +382,12 @@ static int regdb_normalize_keynames_fn(struct db_record *rec, return 1; } + if (strncmp((const char *)rec->key.dptr, REGDB_VERSION_KEYNAME, + strlen(REGDB_VERSION_KEYNAME)) == 0) + { + return 0; + } + keyname = strchr((const char *) rec->key.dptr, '/'); if (keyname) { keyname = talloc_string_sub(mem_ctx, -- cgit