s3:registry: fix the v1_to_v2 upgrade code so that it does not normalize the INFO...
authorMichael Adam <obnox@samba.org>
Tue, 23 Aug 2011 23:13:47 +0000 (01:13 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 11 Oct 2011 13:20:55 +0000 (15:20 +0200)
source3/registry/reg_backend_db.c

index a100bc14d9476e869df03ef4abaddfceddb7f732..48137f0ac510ac92539c9ef1ce4532aeb8809c7b 100644 (file)
@@ -380,6 +380,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,