mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Merge topic 'fix-12284-cpack-symlinks'
7b8dcddCPack: Do not recurse through directory symlinks (#12284)d78bdb2CMake: Write symlinks to directories as files in archives (#12284)
This commit is contained in:
@@ -1000,6 +1000,7 @@ int cmCPackGenerator::DoPackage()
|
||||
std::string findExpr = tempDirectory;
|
||||
findExpr += "/*";
|
||||
gl.RecurseOn();
|
||||
gl.SetRecurseThroughSymlinks(false);
|
||||
if ( !gl.FindFiles(findExpr) )
|
||||
{
|
||||
cmCPackLogger(cmCPackLog::LOG_ERROR,
|
||||
|
||||
@@ -180,7 +180,8 @@ bool cmArchiveWrite::AddPath(const char* path,
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(!cmSystemTools::FileIsDirectory(path))
|
||||
if(!cmSystemTools::FileIsDirectory(path) ||
|
||||
cmSystemTools::FileIsSymlink(path))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user