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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15858>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to