mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -44,6 +44,8 @@ Program::FindProgramByName(const std::string& progName) {
|
|||||||
Path temp;
|
Path temp;
|
||||||
if (!temp.setFile(progName)) // invalid name
|
if (!temp.setFile(progName)) // invalid name
|
||||||
return Path();
|
return Path();
|
||||||
|
// FIXME: have to check for absolute filename - we cannot assume anything
|
||||||
|
// about "." being in $PATH
|
||||||
if (temp.executable()) // already executable as is
|
if (temp.executable()) // already executable as is
|
||||||
return temp;
|
return temp;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user