diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-11-14 13:48:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-11-14 13:48:32 (GMT) |
commit | 22fb266d06517b83026c2f0a99e4a92b5c35efb4 (patch) | |
tree | 2073df8bc72f568b93138df20e227c77ba50c693 | |
parent | 57865607f464999961e874b3aad8bfb9768c88e1 (diff) | |
download | CMake-22fb266d06517b83026c2f0a99e4a92b5c35efb4.zip CMake-22fb266d06517b83026c2f0a99e4a92b5c35efb4.tar.gz CMake-22fb266d06517b83026c2f0a99e4a92b5c35efb4.tar.bz2 |
use different tar format to handle longer file names
-rw-r--r-- | Source/CPack/cmCPackArchiveGenerator.cxx | 3 | ||||
-rw-r--r-- | Source/cmSystemTools.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Source/CPack/cmCPackArchiveGenerator.cxx b/Source/CPack/cmCPackArchiveGenerator.cxx index e205419..ba221a3 100644 --- a/Source/CPack/cmCPackArchiveGenerator.cxx +++ b/Source/CPack/cmCPackArchiveGenerator.cxx @@ -55,8 +55,7 @@ bool SetArchiveType(struct archive* a, { case cmCPackArchiveGenerator::TAR: // maybe this: - //res = archive_write_set_format_pax(a); - res = archive_write_set_format_ustar(a); // is this what we want? + res = archive_write_set_format_pax_restricted(a); break; case cmCPackArchiveGenerator::ZIP: res = archive_write_set_format_zip(a); diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index b16d28a..f5fba5c 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1779,7 +1779,7 @@ bool cmSystemTools::CreateTar(const char* outFileName, res = archive_write_set_compression_none(a); CHECK_ARCHIVE_ERROR(res, "Can not set none:"); } - res = archive_write_set_format_ustar(a); + res = archive_write_set_format_pax_restricted(a); CHECK_ARCHIVE_ERROR(res, "Can not set tar format:"); res = archive_write_open_file(a, outFileName); CHECK_ARCHIVE_ERROR(res, "write open:"); |