mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +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:
parent
8177bf8904
commit
22c46da12b
@ -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