summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorJohan Björk <phb@spotify.com>2011-08-27 17:34:37 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-09-06 18:04:37 (GMT)
commit7b8dcdd17312a7c3ed731743468136b0ea89a6c7 (patch)
treef6020f6638ebc67a37fe13104b575c198fda4ed0 /Source/CPack
parentd78bdb27832c91c775ad3782c9eb436dcd6a1e7c (diff)
downloadCMake-7b8dcdd17312a7c3ed731743468136b0ea89a6c7.zip
CMake-7b8dcdd17312a7c3ed731743468136b0ea89a6c7.tar.gz
CMake-7b8dcdd17312a7c3ed731743468136b0ea89a6c7.tar.bz2
CPack: Do not recurse through directory symlinks (#12284)
...when building CPack archive-based packages (.tar.gz and similar) Rather, put the symlinks-to-directories into the archive as files, and expect/trust that the things the symlinks point to are also in the archive.
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 0e4acd5..083279f 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -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,