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>
Thu, 25 Aug 2011 21:55:06 +0000 (23:55 +0200)
source3/registry/reg_backend_db.c

index 2a52042079d01e78778d56d90da5827713795ae8..13bf342989adeaaf2552936526a7c236fc317d86 100644 (file)
@@ -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,