瀏覽代碼

use different tar format to handle longer file names

Bill Hoffman 16 年之前
父節點
當前提交
22fb266d06
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 2
      Source/CPack/cmCPackArchiveGenerator.cxx
  2. 1 1
      Source/cmSystemTools.cxx

+ 1 - 2
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);

+ 1 - 1
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:");