]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue #901: Sparse files with long name get renamed.
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 21 Apr 2017 00:22:55 +0000 (02:22 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 21 Apr 2017 00:22:55 +0000 (02:22 +0200)
commit6462ccda48c8f33dce4c80c2f1533263277d4da9
treee83777e0e44db656d6aedf991ec3a67abf804881
parent62eca97f3daabd19417bf353f607a8e05feeb218
Issue #901: Sparse files with long name get renamed.

The original ustar header has a 100 character limit for the file name.
With the POSIX interchange format, an additional header attribute
contains the full path and libarchive tries to cut it to something
sensible. The GNU sparse file extension on the other hand also likes to
mangle the ustar header field to include a marker and contains yet
another attribute for the original path. If the name was truncated
earlier, this attribute would get the incorrect truncated name.
libarchive/archive_write_set_format_pax.c
libarchive/test/test_write_format_pax.c