summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-08-24 01:13:47 +0200
committerMichael Adam <obnox@samba.org>2011-08-25 23:55:06 +0200
commit9b46798b1191ec88a3776b52aea7eb2e962f6ac7 (patch)
tree32e950d549e4b994ea5304219605f98635681ffa /source3/registry
parentb4cb969e4099ee35f184cfaa82d6048b28228be8 (diff)
downloadsamba-9b46798b1191ec88a3776b52aea7eb2e962f6ac7.tar.gz
samba-9b46798b1191ec88a3776b52aea7eb2e962f6ac7.tar.bz2
samba-9b46798b1191ec88a3776b52aea7eb2e962f6ac7.zip
s3:registry: fix the v1_to_v2 upgrade code so that it does not normalize the INFO/version key ...
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c6
1 files changed, 6 insertions, 0 deletions
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,