[llvm] r184074 - Fix incorrectly finding 'executable' directories instead of files.

Manuel Klimek klimek at google.com
Mon Jun 17 05:51:19 PDT 2013


On Mon, Jun 17, 2013 at 2:44 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> On 17 June 2013 06:48, Manuel Klimek <klimek at google.com> wrote:
> > Author: klimek
> > Date: Mon Jun 17 05:48:34 2013
> > New Revision: 184074
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=184074&view=rev
> > Log:
> > 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
>
> This is ok.
>
> > - 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.
>
> Sigh, I was hopping to avoid the cost, but yes, it is better to have it
> for now.
>
> I will try to add testcases.
>

Cool, thanks! :)


>
> Thanks,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130617/b970002f/attachment.html>


More information about the llvm-commits mailing list