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 | f722f3341f65f8737c10eb59048c1263a58afd44 (patch) | |
tree | ffa2122eb97963fad215c5c5b5aeab959ceb83fc /source/registry | |
parent | 6639f8c1190419e183d92ed0322e1026375717e6 (diff) | |
download | samba-f722f3341f65f8737c10eb59048c1263a58afd44.tar.gz |
r19838: We have to delete the value record as well, otherwise the old values pop up
again if the key is re-created.
Volker
Diffstat (limited to 'source/registry')
-rw-r--r-- | source/registry/reg_db.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/registry/reg_db.c b/source/registry/reg_db.c index cc212ea4ccd..31122b858e2 100644 --- a/source/registry/reg_db.c +++ b/source/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 ); } } |