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

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



On 13 June 2018 at 08:08, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 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.

See https://wiki.sei.cmu.edu/confluence/display/c/POS37-C.+Ensure+that+privilege+relinquishment+is+successful
I'm not sure what current systems have these issues, but explicitly
checking the results of getuid after priv-drop is still considered a
"good idea"



-- 
Eitan Adler



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