diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-22 15:41:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:01 -0500 |
commit | 45111ff1cb3410b0e696a21ee68a556d4cc19a54 (patch) | |
tree | 6efccd6d2b8eafb0b35686988901c5eab9b60e71 | |
parent | aad7194999583740d406cbe7ce0338ebb9b69d4e (diff) | |
download | samba-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.c | 4 |
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 ); } } |