mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-06 19:49:20 +00:00
Merge pull request #8401 from ThomasWaldmann/fix-authenticated-no-key-1.4
fix authenticated_no_key (1.4-maint)
This commit is contained in:
commit
c1bb7ec515
1 changed files with 2 additions and 0 deletions
|
@ -305,6 +305,8 @@ class KeyBase:
|
|||
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')
|
||||
|
|
Loading…
Add table
Reference in a new issue