diff options
author | Brad King <brad.king@kitware.com> | 2010-12-08 23:00:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-08 23:04:10 (GMT) |
commit | 306427c079d12116e3ab04666b3048e56b4eff47 (patch) | |
tree | 8532039d008b13b5b8f9d0998d050cb104f0fb3e | |
parent | 02a8ea2d5b0b41858be8a9e28d41e06af744fd0b (diff) | |
download | CMake-306427c079d12116e3ab04666b3048e56b4eff47.zip CMake-306427c079d12116e3ab04666b3048e56b4eff47.tar.gz CMake-306427c079d12116e3ab04666b3048e56b4eff47.tar.bz2 |
KWSys: Remove realpath from SystemTools::GetPath (#10335)
Commit "merge in changes for beos support" (2006-12-04) added a realpath
call for every directory parsed out of a PATH-style environment
variable. No reason was given in the commit message or comments.
The call incorrectly resolves symlinks in referenced paths. Remove it.
If BeOS support really needs it then it can be restored for that
platform with a full explanation.
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 8aa99eb..7638e4a 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -378,9 +378,7 @@ void SystemTools::GetPath(kwsys_stl::vector<kwsys_stl::string>& path, const char kwsys_stl::string::size_type endpos = pathEnv.find(pathSep, start); if(endpos != kwsys_stl::string::npos) { - kwsys_stl::string convertedPath; - Realpath(pathEnv.substr(start, endpos-start).c_str(), convertedPath); - path.push_back(convertedPath); + path.push_back(pathEnv.substr(start, endpos-start)); start = endpos+1; } else |