Skip to content

Commit

Permalink
Merge pull request #8401 from ThomasWaldmann/fix-authenticated-no-key…
Browse files Browse the repository at this point in the history
…-1.4

fix authenticated_no_key (1.4-maint)
  • Loading branch information
ThomasWaldmann authored Sep 20, 2024
2 parents 30cd3b8 + 2c18620 commit c1bb7ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/borg/crypto/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ def unpack_and_verify_archive(self, data, force_tam_not_required=False):
unpacker = get_limited_unpacker('archive')
unpacker.feed(data)
unpacked = unpacker.unpack()
if AUTHENTICATED_NO_KEY:
return unpacked, True, None # True is a lie.
if b'tam' not in unpacked:
if tam_required:
archive_name = unpacked.get(b'name', b'<unknown>').decode('ascii', 'replace')
Expand Down

0 comments on commit c1bb7ec

Please sign in to comment.