mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 00:27:31 +00:00
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:
parent
11854af05f
commit
7f08d0bc03
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user