git/contrib/fast-import
Pedro Alvarez Piedehierro 12ecea46e3 import-tars: read overlong names from pax extended header
Importing gcc tarballs[1] with import-tars script (in contrib) fails
when hitting a pax extended header.

Make sure we always read the extended attributes from the pax entries,
and store the 'path' value if found to be used in the next ustar entry.

The code to parse pax extended headers was written consulting the Pax
Pax Interchange Format documentation [2].

[1] http://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.xz
[2] https://www.freebsd.org/cgi/man.cgi?manpath=FreeBSD+8-current&query=tar&sektion=5

Signed-off-by: Pedro Alvarez <palvarez89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-05-24 08:35:51 +09:00
..
git-import.perl contrib/fast-import: use a lowercase "usage:" string 2013-02-24 13:31:08 -08:00
git-import.sh contrib/fast-import: use a lowercase "usage:" string 2013-02-24 13:31:08 -08:00
git-p4.README git-p4: move to toplevel 2012-04-09 14:59:40 -07:00
import-directories.perl Replace Free Software Foundation address in license notices 2017-11-09 13:21:21 +09:00
import-tars.perl import-tars: read overlong names from pax extended header 2018-05-24 08:35:51 +09:00
import-zips.py contrib/fast-import/import-zips.py: use spaces instead of tabs 2013-02-24 13:31:08 -08:00