Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: 'UID=42 whoami' proceeds despite error
- X-seq: zsh-workers 40063
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: 'UID=42 whoami' proceeds despite error
- Date: Fri, 02 Dec 2016 12:21:13 +0000
- Cms-type: 201P
- In-reply-to: <20161202120826.GA8535@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <CGME20161202121138epcas2p21c55043b509df171e8241852d17d2f41@epcas2p2.samsung.com> <20161202120826.GA8535@fujitsu.shahaf.local2>
On Fri, 2 Dec 2016 12:08:26 +0000
Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> With current master, `UID=42 foo` will run 'foo' as the current UID, not
> as UID 42, if setuid() failed:
>
> % UID=42 id -u; echo $?
> zsh: failed to change user ID: operation not permitted
> 1000
> 0
> %
>
> How about the following?
Yes, you'd certainly have thought doing it anyway with the wrong UID
wasn't what the user expected.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author