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

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

llvm-svn: 21378
This commit is contained in:
Misha Brukman 2005-04-20 15:42:11 +00:00
parent 11854af05f
commit 7f08d0bc03

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;