summaryrefslogtreecommitdiff
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2005-04-20 15:42:11 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2005-04-20 15:42:11 +0000
commit22c46da12bb6346feb16bcea893ab87082a54bd9 (patch)
treeaacaaa960c4caaceb91be1396202157866eb2fcf /lib/System/Unix
parent8177bf8904be3906781e66e41980d01dc7ce1bbe (diff)
downloadllvm-22c46da12bb6346feb16bcea893ab87082a54bd9.tar.gz
llvm-22c46da12bb6346feb16bcea893ab87082a54bd9.tar.bz2
llvm-22c46da12bb6346feb16bcea893ab87082a54bd9.tar.xz
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')
-rw-r--r--lib/System/Unix/Program.inc2
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;