Add FIXME by Markus Oberhumer from bug 545: not checking for "." in $PATH may

result in returning executable files that won't be runnable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2005-04-20 15:42:11 +00:00
parent 8177bf8904
commit 22c46da12b

View File

@ -44,6 +44,8 @@ Program::FindProgramByName(const std::string& progName) {
Path temp;
if (!temp.setFile(progName)) // invalid name
return Path();
// FIXME: have to check for absolute filename - we cannot assume anything
// about "." being in $PATH
if (temp.executable()) // already executable as is
return temp;