OSDN Git Service

TarWriter: Use Ustar header's "prefix" field to store long filenames.
authorRui Ueyama <ruiu@google.com>
Sat, 7 Jan 2017 08:28:56 +0000 (08:28 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 7 Jan 2017 08:28:56 +0000 (08:28 +0000)
commit8d4b4e6f8ad04fce563c186b6472d99dfde4a965
tree946bc49753bd353fe97aab089b7645f188cf403f
parent7be24b7e92b445445e8829cafea5b76e959d72e6
TarWriter: Use Ustar header's "prefix" field to store long filenames.

Tar's Ustar header has the "prefix" field to store a directory
part of a filename. It is not as flexible as the PAX-extended
filename because there's still a limitation on the maximum filename
size, but it mitigates the situation.

This patch should unbreak some Windows buildbots that uses very
old tar command.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291340 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/TarWriter.cpp