Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: 'UID=42 whoami' proceeds despite error



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