summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-22 15:41:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:01 -0500
commit45111ff1cb3410b0e696a21ee68a556d4cc19a54 (patch)
tree6efccd6d2b8eafb0b35686988901c5eab9b60e71
parentaad7194999583740d406cbe7ce0338ebb9b69d4e (diff)
downloadsamba-45111ff1cb3410b0e696a21ee68a556d4cc19a54.tar.gz
samba-45111ff1cb3410b0e696a21ee68a556d4cc19a54.tar.bz2
samba-45111ff1cb3410b0e696a21ee68a556d4cc19a54.zip
r19838: We have to delete the value record as well, otherwise the old values pop up
again if the key is re-created. Volker (This used to be commit f722f3341f65f8737c10eb59048c1263a58afd44)
-rw-r--r--source3/registry/reg_db.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c
index cc212ea4cc..31122b858e 100644
--- a/source3/registry/reg_db.c
+++ b/source3/registry/reg_db.c
@@ -397,6 +397,10 @@ BOOL regdb_store_keys( const char *key, REGSUBKEY_CTR *ctr )
pstr_sprintf( path, "%s%c%s", key, '/', oldkeyname );
normalize_reg_path( path );
tdb_delete_bystring( tdb_reg, path );
+ pstr_sprintf( path, "%s/%s/%s", VALUE_PREFIX, key,
+ oldkeyname );
+ normalize_reg_path( path );
+ tdb_delete_bystring( tdb_reg, path );
}
}