Message223732
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. |
|
Date |
User |
Action |
Args |
2014-07-23 09:57:06 | lars.gustaebel | set | recipients:
+ lars.gustaebel, r.david.murray, serhiy.storchaka, moloney |
2014-07-23 09:57:06 | lars.gustaebel | set | messageid: <1406109426.24.0.468587295717.issue21987@psf.upfronthosting.co.za> |
2014-07-23 09:57:06 | lars.gustaebel | link | issue21987 messages |
2014-07-23 09:57:06 | lars.gustaebel | create | |
|