Merge topic 'fixSymlinkInZIP'
768cf91 Do not add the content of a file if it's a symlink.
This commit is contained in:
commit
a6bc62c5ac
@ -247,10 +247,14 @@ bool cmArchiveWrite::AddFile(const char* file,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Content.
|
// do not copy content of symlink
|
||||||
if(size_t size = static_cast<size_t>(archive_entry_size(e)))
|
if (!archive_entry_symlink(e))
|
||||||
{
|
{
|
||||||
return this->AddData(file, size);
|
// Content.
|
||||||
|
if(size_t size = static_cast<size_t>(archive_entry_size(e)))
|
||||||
|
{
|
||||||
|
return this->AddData(file, size);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user