Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Tests for globbing below protected directories
- X-seq: zsh-workers 47911
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Tests for globbing below protected directories
- Date: Thu, 04 Feb 2021 13:09:25 +0000
- Archived-at: <https://zsh.org/workers/47911>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/8b06b77e-cad6-461b-b598-43e588e8c1e7%40www.fastmail.com>
- In-reply-to: <CAH+w=7Y9_D9aucH7tzi29MBxmJ=-RuPV8Gb-GJUzPM1FkN-bAg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7bwDpyu0Anj5wpQ-v+ATFZ7fvqfz9RSeoE6ahRu=QVGLQ@mail.gmail.com> <20210126235605.GC25751@tarpaulin.shahaf.local2> <CAH+w=7Y7dTEVNz42zpTwmdWBeAV2UWVeYRZZjQhs5LzN2E_idg@mail.gmail.com> <20210203112225.GB12261@tarpaulin.shahaf.local2> <CAH+w=7b81vX7pT2nQt9PuybOLG8n6d3npTe31NRMiGvgaQZUJA@mail.gmail.com> <CAH+w=7Y9_D9aucH7tzi29MBxmJ=-RuPV8Gb-GJUzPM1FkN-bAg@mail.gmail.com>
Bart Schaefer wrote on Wed, 03 Feb 2021 23:06 +00:00:
> On Wed, Feb 3, 2021 at 2:33 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > Perhaps, but that's the definition of the difference between
> > "readable" and "searchable" (executable) directories.
>
> Put more concretely:
Yeah, I understand why it happens. It's obvious if one knows that
«foo/*» is implemented by readdir() and «foo/bar» by stat(). The thing
is, someone who learnt glob patterns as a black box might not be
familiar with the relevant syscall/permission semantics and thus may be
surprised by this behaviour.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author