do not discard valid data in buffers when in tolerant mode
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 15 Aug 2017 08:31:15 +0000 (10:31 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:09 +0000 (13:34 +0200)
commit8de91f4fafcff22a45997d9705bf8a69e098b9a5
treea1b59eb7178c99d833d240af6118cee80eacf03c
parent1ed44e7bd683d5a4543553e4332a1d51fc0d803b
do not discard valid data in buffers when in tolerant mode

Both decryption and decompression will fail on the first error
and ignore any results of earlier passes. In normal operation,
the hard failures are desirable to indicate a bad backup set.

However, in tolerant / recovery mode the error handling is closer
to the opposite extreme: we want to retrieve every last byte that
made it through the various layers and only skip over the parts
that cannot be interpreted at all.
deltatar/crypto.py
deltatar/tarfile.py