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

e8558ef cmArchiveWrite: Clear xattr and acl from entries (#11958)
This commit is contained in:
Brad King authored and CMake Topic Stage committed 2011-04-12 14:43:15 -04:00
commit eeb2e2eaec
1 file changed
+3
+3
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: ";