Merge topic 'libarchive-strip-xattr-issue-11958'

e8558ef cmArchiveWrite: Clear xattr and acl from entries (#11958)
This commit is contained in:
Brad King 2011-04-12 14:43:15 -04:00 committed by CMake Topic Stage
commit eeb2e2eaec
1 changed files with 3 additions and 0 deletions

View File

@ -236,6 +236,9 @@ bool cmArchiveWrite::AddFile(const char* file,
this->Error += archive_error_string(this->Disk);
return false;
}
// Clear acl and xattr fields not useful for distribution.
archive_entry_acl_clear(e);
archive_entry_xattr_clear(e);
if(archive_write_header(this->Archive, e) != ARCHIVE_OK)
{
this->Error = "archive_write_header: ";