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:
parent
366b51a8ff
commit
8f158bab9f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user