Lars Gustäbel added the comment:

Apparently, the problem is located in TarInfo._proc_gnulong(). I attached a 
patch.

When tarfile reads an archive, it strips trailing slashes from all filenames, 
except GNUTYPE_LONGNAME headers, which is a bug. tarfile creates GNU_FORMAT tar 
files by default, hence it uses an additional GNUTYPE_LONGNAME header for 
filenames >100 chars. That's why tarfile_issue.py fails if used with 
PAX_FORMAT, because PAX_FORMAT doesn't have this bug.

----------
keywords: +patch
Added file: http://bugs.python.org/file36045/issue21987.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21987>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to