mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-23 01:41:25 -05:00
Merge pull request #8402 from ThomasWaldmann/fix-authenticated-no-key-1.2
fix authenticated_no_key (1.2-maint)
This commit is contained in:
commit
9da4236298
1 changed files with 2 additions and 0 deletions
|
|
@ -296,6 +296,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…
Reference in a new issue