[llvm-commits] [llvm] r77396 - /llvm/trunk/lib/System/Unix/Program.inc
Dan Gohman
gohman at apple.com
Tue Jul 28 16:25:18 PDT 2009
Author: djg
Date: Tue Jul 28 18:25:18 2009
New Revision: 77396
URL: http://llvm.org/viewvc/llvm-project?rev=77396&view=rev
Log:
On "Unix", if Program::FindProgramByName is given a name containing
slashes, just go with it, regardless of whether it looks like it will
be executable. This follows the behavior of sh(1) more closely.
Modified:
llvm/trunk/lib/System/Unix/Program.inc
Modified: llvm/trunk/lib/System/Unix/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Program.inc?rev=77396&r1=77395&r2=77396&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Program.inc (original)
+++ llvm/trunk/lib/System/Unix/Program.inc Tue Jul 28 18:25:18 2009
@@ -47,7 +47,7 @@
return Path();
// Use the given path verbatim if it contains any slashes; this matches
// the behavior of sh(1) and friends.
- if (progName.find('/') != std::string::npos && temp.canExecute())
+ if (progName.find('/') != std::string::npos)
return temp;
// At this point, the file name is valid and its not executable
More information about the llvm-commits
mailing list