summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-02-25 00:58:50 +0100
committerMichael Adam <obnox@samba.org>2016-03-01 21:50:24 +0100
commit8f158bab9f8dbdbdb460258a08a15d0d6c41cbac (patch)
tree91b16c0320e285c8be50c738e169c10224eeabbc /source3/registry
parent366b51a8ff30132185ff126e2cdd51801b07e6f4 (diff)
downloadsamba-8f158bab9f8dbdbdb460258a08a15d0d6c41cbac.tar.gz
s3:registry: use dbwrap_purge_bystring instead of dbwrap_delete_bystring
where appropriate Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 7b3391deb1e..bdfe7d2e0b2 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -966,12 +966,7 @@ static WERROR regdb_delete_key_with_prefix(struct db_context *db,
goto done;
}
- werr = ntstatus_to_werror(dbwrap_delete_bystring(db, path));
-
- /* treat "not found" as ok */
- if (W_ERROR_EQUAL(werr, WERR_NOT_FOUND)) {
- werr = WERR_OK;
- }
+ werr = ntstatus_to_werror(dbwrap_purge_bystring(db, path));
done:
talloc_free(mem_ctx);