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.
This commit is contained in:
parent
02a8ea2d5b
commit
306427c079
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user