From 22c46da12bb6346feb16bcea893ab87082a54bd9 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Wed, 20 Apr 2005 15:42:11 +0000 Subject: [PATCH] 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 --- lib/System/Unix/Program.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 484ce0f8c89..94091e2ca33 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; -- 2.34.1