Merge topic 'libarchive-strip-xattr-issue-11958'
e8558ef
cmArchiveWrite: Clear xattr and acl from entries (#11958)
This commit is contained in:
commit
eeb2e2eaec
|
@ -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: ";
|
||||
|
|
Loading…
Reference in New Issue