Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [[ -x ]] and root
- X-seq: zsh-users 301
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: colin@xxxxxxxxxxxxxxxxxxxxx (Colin Holmes)
- Subject: Re: [[ -x ]] and root
- Date: Tue, 16 Jul 1996 20:41:59 +0100 (BST)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <9607161057.ZM17052@xxxxxxxxxxxxxxxxxxxxx> from "Colin Holmes" at Jul 16, 96 10:57:21 am
>Are you confident that zsh uses access(2) in its test -x
>implementation? That would be a mistake, I believe.
Red herring alert.
I mentioned access(2) specifically because that's the *neatest* way to
test it. In Linux, the bug was not in access() itself, but in the
generic permission-checking code. That code is used for access(), and
also for all the other permissions checking. If that code is
misbehaving, access() would be one of the more directly affected
syscalls.
That said, zsh *does* in fact use access(2) for condition checking.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author