use different tar format to handle longer file names
This commit is contained in:
parent
57865607f4
commit
22fb266d06
@ -55,8 +55,7 @@ bool SetArchiveType(struct archive* a,
|
|||||||
{
|
{
|
||||||
case cmCPackArchiveGenerator::TAR:
|
case cmCPackArchiveGenerator::TAR:
|
||||||
// maybe this:
|
// maybe this:
|
||||||
//res = archive_write_set_format_pax(a);
|
res = archive_write_set_format_pax_restricted(a);
|
||||||
res = archive_write_set_format_ustar(a); // is this what we want?
|
|
||||||
break;
|
break;
|
||||||
case cmCPackArchiveGenerator::ZIP:
|
case cmCPackArchiveGenerator::ZIP:
|
||||||
res = archive_write_set_format_zip(a);
|
res = archive_write_set_format_zip(a);
|
||||||
|
@ -1779,7 +1779,7 @@ bool cmSystemTools::CreateTar(const char* outFileName,
|
|||||||
res = archive_write_set_compression_none(a);
|
res = archive_write_set_compression_none(a);
|
||||||
CHECK_ARCHIVE_ERROR(res, "Can not set none:");
|
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:");
|
CHECK_ARCHIVE_ERROR(res, "Can not set tar format:");
|
||||||
res = archive_write_open_file(a, outFileName);
|
res = archive_write_open_file(a, outFileName);
|
||||||
CHECK_ARCHIVE_ERROR(res, "write open:");
|
CHECK_ARCHIVE_ERROR(res, "write open:");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user