diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-20 15:42:11 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-20 15:42:11 +0000 |
commit | 22c46da12bb6346feb16bcea893ab87082a54bd9 (patch) | |
tree | aacaaa960c4caaceb91be1396202157866eb2fcf /lib/System/Unix/Program.inc | |
parent | 8177bf8904be3906781e66e41980d01dc7ce1bbe (diff) |
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
Diffstat (limited to 'lib/System/Unix/Program.inc')
-rw-r--r-- | lib/System/Unix/Program.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 484ce0f8c8..94091e2ca3 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -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; |