Merge topic 'archive-exclude-file-flags'

a34015d cmArchiveWrite: Clear fflags from archive entries
This commit is contained in:
David Cole 2012-06-12 15:59:01 -04:00 committed by CMake Topic Stage
commit 2b3b45aec9
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ bool cmArchiveWrite::AddFile(const char* file,
// Clear acl and xattr fields not useful for distribution.
archive_entry_acl_clear(e);
archive_entry_xattr_clear(e);
archive_entry_set_fflags(e, 0, 0);
if(archive_write_header(this->Archive, e) != ARCHIVE_OK)
{
this->Error = "archive_write_header: ";