Author martin.panter
Recipients efloehr, lars.gustaebel, martin.panter, tlynn, whitemice
Date 2015-12-08.21:40:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449610847.0.0.927411503915.issue15858@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-12-08 21:40:47martin.pantersetrecipients: + martin.panter, tlynn, lars.gustaebel, efloehr, whitemice
2015-12-08 21:40:47martin.pantersetmessageid: <1449610847.0.0.927411503915.issue15858@psf.upfronthosting.co.za>
2015-12-08 21:40:46martin.panterlinkissue15858 messages
2015-12-08 21:40:46martin.pantercreate