From 45111ff1cb3410b0e696a21ee68a556d4cc19a54 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 22 Nov 2006 15:41:29 +0000 Subject: 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) --- source3/registry/reg_db.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/registry/reg_db.c') 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 ); } } -- cgit