diff options
author | Michael Adam <obnox@samba.org> | 2009-07-03 16:51:26 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-07-15 14:01:43 +0200 |
commit | 528bf38875b9e5412da0a2810b17f05b2c376312 (patch) | |
tree | 73f90b4d5d9313943851c81611443ff53c240ddc /source3 | |
parent | 86e927cb056b30be3b2eecc1375549de71419b1f (diff) | |
download | samba-528bf38875b9e5412da0a2810b17f05b2c376312.tar.gz samba-528bf38875b9e5412da0a2810b17f05b2c376312.tar.bz2 samba-528bf38875b9e5412da0a2810b17f05b2c376312.zip |
s3:registry: add db_context argument to regdb_delete_key_lists()
Michael
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_backend_db.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 69676b19e6..700db0140f 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -566,25 +566,25 @@ static WERROR regdb_delete_subkeylist(struct db_context *db, const char *keyname return regdb_delete_key_with_prefix(db, keyname, NULL); } -static WERROR regdb_delete_key_lists(const char *keyname) +static WERROR regdb_delete_key_lists(struct db_context *db, const char *keyname) { WERROR werr; - werr = regdb_delete_values(regdb, keyname); + werr = regdb_delete_values(db, keyname); if (!W_ERROR_IS_OK(werr)) { DEBUG(1, (__location__ " Deleting %s/%s failed: %s\n", REG_VALUE_PREFIX, keyname, win_errstr(werr))); goto done; } - werr = regdb_delete_secdesc(regdb, keyname); + werr = regdb_delete_secdesc(db, keyname); if (!W_ERROR_IS_OK(werr)) { DEBUG(1, (__location__ " Deleting %s/%s failed: %s\n", REG_SECDESC_PREFIX, keyname, win_errstr(werr))); goto done; } - werr = regdb_delete_subkeylist(regdb, keyname); + werr = regdb_delete_subkeylist(db, keyname); if (!W_ERROR_IS_OK(werr)) { DEBUG(1, (__location__ " Deleting %s failed: %s\n", keyname, win_errstr(werr))); @@ -810,7 +810,7 @@ bool regdb_store_keys(const char *key, struct regsubkey_ctr *ctr) goto cancel; } - werr = regdb_delete_key_lists(path); + werr = regdb_delete_key_lists(regdb, path); W_ERROR_NOT_OK_GOTO(werr, cancel); TALLOC_FREE(path); @@ -984,7 +984,7 @@ static WERROR regdb_delete_subkey(const char *key, const char *subkey) werr = regdb_transaction_start(); W_ERROR_NOT_OK_GOTO_DONE(werr); - werr = regdb_delete_key_lists(path); + werr = regdb_delete_key_lists(regdb, path); W_ERROR_NOT_OK_GOTO(werr, cancel); werr = regsubkey_ctr_init(mem_ctx, &subkeys); |