summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-07-03 16:40:43 +0200
committerMichael Adam <obnox@samba.org>2009-07-15 14:01:41 +0200
commit2b380c73a4796bdf69264e5ca6721ad0d67087e9 (patch)
treee3f8b3220dae31b012070413a2c17a7a13f80779
parentd554c0d7a923f1194463481f0bd829042cee574a (diff)
downloadsamba-2b380c73a4796bdf69264e5ca6721ad0d67087e9.tar.gz
samba-2b380c73a4796bdf69264e5ca6721ad0d67087e9.tar.bz2
samba-2b380c73a4796bdf69264e5ca6721ad0d67087e9.zip
s3:registry: add db_context argument to regdb_delete_key_with_prefix()
Michael
-rw-r--r--source3/registry/reg_backend_db.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index e296d319e2..bdb237aafc 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -511,7 +511,8 @@ int regdb_get_seqnum(void)
}
-static WERROR regdb_delete_key_with_prefix(const char *keyname,
+static WERROR regdb_delete_key_with_prefix(struct db_context *db,
+ const char *keyname,
const char *prefix)
{
char *path;
@@ -537,7 +538,7 @@ static WERROR regdb_delete_key_with_prefix(const char *keyname,
goto done;
}
- werr = ntstatus_to_werror(dbwrap_delete_bystring(regdb, path));
+ werr = ntstatus_to_werror(dbwrap_delete_bystring(db, path));
/* treat "not" found" as ok */
if (W_ERROR_EQUAL(werr, WERR_NOT_FOUND)) {
@@ -552,17 +553,17 @@ done:
static WERROR regdb_delete_values(const char *keyname)
{
- return regdb_delete_key_with_prefix(keyname, REG_VALUE_PREFIX);
+ return regdb_delete_key_with_prefix(regdb, keyname, REG_VALUE_PREFIX);
}
static WERROR regdb_delete_secdesc(const char *keyname)
{
- return regdb_delete_key_with_prefix(keyname, REG_SECDESC_PREFIX);
+ return regdb_delete_key_with_prefix(regdb, keyname, REG_SECDESC_PREFIX);
}
static WERROR regdb_delete_subkeylist(const char *keyname)
{
- return regdb_delete_key_with_prefix(keyname, NULL);
+ return regdb_delete_key_with_prefix(regdb, keyname, NULL);
}
static WERROR regdb_delete_key_lists(const char *keyname)