1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

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>
This commit is contained in:
Michael Adam 2016-02-25 00:58:50 +01:00
parent 366b51a8ff
commit 8f158bab9f

View File

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