1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3:registry: add db_context argument to regdb_delete_key_with_prefix()

Michael
This commit is contained in:
Michael Adam 2009-07-03 16:40:43 +02:00
parent d554c0d7a9
commit 2b380c73a4

View File

@ -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)