diff options
author | Manuel Klimek <klimek@google.com> | 2013-06-17 10:48:34 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-06-17 10:48:34 +0000 |
commit | 52772bf35600fd6df26523576ea429adc24766f4 (patch) | |
tree | 2ac2ba9e59183334899f84d8a2fb6686ab82a79c /clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp | |
parent | e4fb3dc7d47d5cc859adbf6b87191559bbfd8443 (diff) | |
download | bcm5719-llvm-52772bf35600fd6df26523576ea429adc24766f4.tar.gz bcm5719-llvm-52772bf35600fd6df26523576ea429adc24766f4.zip |
Fix incorrectly finding 'executable' directories instead of files.
This broke for example the 'not' utility, if a directory called
'FileCheck' is executable and in the path before the actual 'FileCheck'.
This patch steals the implementation of the "old" PathV1 canExecute
implementation:
- checks for R_OK (file readable): this is necessary for executing
scripts; we should not regress here unless we have good reasons
- checks for S_ISREG; if we want to get rid of this, we'd need to
change all callers who already made the assumption when depending
on Path V1.
llvm-svn: 184074
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp')
0 files changed, 0 insertions, 0 deletions