[llvm-commits] CVS: llvm/lib/System/Unix/Program.inc
Misha Brukman
brukman at cs.uiuc.edu
Wed Apr 20 08:42:22 PDT 2005
Changes in directory llvm/lib/System/Unix:
Program.inc updated: 1.11 -> 1.12
---
Log message:
Add FIXME by Markus Oberhumer from bug 545: http://llvm.cs.uiuc.edu/PR545 : not checking for "." in $PATH may
result in returning executable files that won't be runnable.
---
Diffs of the changes: (+2 -0)
Program.inc | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/System/Unix/Program.inc
diff -u llvm/lib/System/Unix/Program.inc:1.11 llvm/lib/System/Unix/Program.inc:1.12
--- llvm/lib/System/Unix/Program.inc:1.11 Sat Jan 15 22:23:22 2005
+++ llvm/lib/System/Unix/Program.inc Wed Apr 20 10:42:11 2005
@@ -44,6 +44,8 @@
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;
More information about the llvm-commits
mailing list