diff options
author | Michael Adam <obnox@samba.org> | 2008-05-08 18:05:58 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-05-08 18:29:10 +0200 |
commit | 1f279f866fd93ccd1524f3e4fe48da0cf3dc4ff8 (patch) | |
tree | 98428615ccf47e813f2756c41523fc015c4ef3bb /source3/registry | |
parent | 9f7653bfa1c760be0971a42d688704bf44af92df (diff) | |
download | samba-1f279f866fd93ccd1524f3e4fe48da0cf3dc4ff8.tar.gz samba-1f279f866fd93ccd1524f3e4fe48da0cf3dc4ff8.tar.bz2 samba-1f279f866fd93ccd1524f3e4fe48da0cf3dc4ff8.zip |
registry: add comments to removing lists in regdb_store_keys().
Michael
(This used to be commit 3e89217e7edea5d7ec707de065d38b1921ed09af)
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_db.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index c0ee8017c1..8de10a0b1f 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -671,6 +671,8 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr) continue; } + /* (a) Delete the value list for this key */ + path = talloc_asprintf(ctx, "%s/%s/%s", REG_VALUE_PREFIX, key, @@ -686,6 +688,8 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr) dbwrap_delete_bystring(regdb, path); TALLOC_FREE(path); + /* (c) Delete the list of subkeys of this key */ + path = talloc_asprintf(ctx, "%s/%s", key, oldkeyname); if (!path) { goto cancel; |