lift block alignment requirement for tar archive rescue
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 29 Aug 2017 12:45:31 +0000 (14:45 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:09 +0000 (13:34 +0200)
commita793ee30b81fc348b653e0e4c9f00d33969003e7
tree84ee10d0b791ce783fbc3337fa4bd4208814354f
parent27ee4dd4df48340541317123f5df348056c235ca
lift block alignment requirement for tar archive rescue

It is unlikely that damaged archives have correctly aligned tar
headers. Thus we need to check each header-like section whether
it contains the right magic and the checksum matches. Objects
without a correct checksum (which spans the better part of the
header) are discarded similar to what file(1) does.
deltatar/tarfile.py
testing/test_recover.py