[issue15858] tarfile missing entries due to omitted uid/gid fields
Martin Panter
report at bugs.python.org
Tue Dec 8 16:40:47 EST 2015
Martin Panter added the comment:
Yes I think you are right. With Python 3.5.0:
$ python3 -c 'import tarfile; print(tarfile.open("bad.tar").getnames())'
['foo', 'foo/a']
$ python3 -m tarfile --list bad.tar
foo/
foo/a
The proposed fix here is slightly different: truncate from the first space, rather than trailing whitespace.
----------
nosy: +martin.panter
resolution: -> out of date
stage: test needed -> resolved
status: open -> closed
superseder: -> tarfile fails to extract archive (handled fine by gnu tar and bsdtar)
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15858>
_______________________________________
More information about the Python-bugs-list
mailing list