projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8177bf8
)
Add FIXME by Markus Oberhumer from bug 545: not checking for "." in $PATH may
author
Misha Brukman
<brukman+llvm@gmail.com>
Wed, 20 Apr 2005 15:42:11 +0000
(15:42 +0000)
committer
Misha Brukman
<brukman+llvm@gmail.com>
Wed, 20 Apr 2005 15:42:11 +0000
(15:42 +0000)
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
lib/System/Unix/Program.inc
patch
|
blob
|
history
diff --git
a/lib/System/Unix/Program.inc
b/lib/System/Unix/Program.inc
index 484ce0f8c89d03621ced4982a33f638f4e91ea4a..94091e2ca3304a4dbb70056396ddd2485ae66f1b 100644
(file)
--- 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;