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

Re: [PATCH] Silence compilation warnings about setuid, setgid



On Wed, 13 Jun 2018 08:08:27 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> IIRC there are some cases in which setgid/setuid fail silently, i.e.,
> without changing anything but without setting errno.  The second calls
> are to double-check that the first one was not rogue in that way.
> 
> This may have been isolated to a 1990s-era OS that is no longer at
> issue.  Either way there's no particular reason to save and report
> errno from the first call.

Thanks, I'll change to a cast to void.

pws



Messages sorted by: Reverse Date, Date, Thread, Author