Commit 5135e9ed authored by Łukasz Langa's avatar Łukasz Langa

Merge 3.5, issue #27194

parents 6a7506a7 e7f27481
...@@ -2153,10 +2153,10 @@ class TarFile(object): ...@@ -2153,10 +2153,10 @@ class TarFile(object):
for offset, size in tarinfo.sparse: for offset, size in tarinfo.sparse:
target.seek(offset) target.seek(offset)
copyfileobj(source, target, size, ReadError) copyfileobj(source, target, size, ReadError)
else:
copyfileobj(source, target, tarinfo.size, ReadError)
target.seek(tarinfo.size) target.seek(tarinfo.size)
target.truncate() target.truncate()
else:
copyfileobj(source, target, tarinfo.size, ReadError)
def makeunknown(self, tarinfo, targetpath): def makeunknown(self, tarinfo, targetpath):
"""Make a file from a TarInfo object with an unknown type """Make a file from a TarInfo object with an unknown type
......
...@@ -462,6 +462,7 @@ Stefan Franke ...@@ -462,6 +462,7 @@ Stefan Franke
Martin Franklin Martin Franklin
Kent Frazier Kent Frazier
Bruce Frederiksen Bruce Frederiksen
Jason Fried
Robin Friedrich Robin Friedrich
Bradley Froehle Bradley Froehle
Ivan Frohne Ivan Frohne
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment