DescriptionMinor fixes for tar/archive.
1. If all data is exhausted using .Read() then a following
.Next() will fail as if it saw EOF.
A test case for this was added. It verifies the data using MD5.
2. The 'Seeker' check isn't robust so we get seek failures on
non-seekable descriptors. Fix to fallback to doing a read.
A test case for this was added.
3. It's common (normal?) to get numerous 'empty' Headers at
the end of a tar file from .Next() before we get an EOF.
Suppress these.
One of the test cases (TestReader) was modified to
accommodate this.
Patch Set 1 #Patch Set 2 : code review 162047: Minor fixes for tar/archive. #
Total comments: 12
MessagesTotal messages: 9
|