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

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



On Thu, 14 Jun 2018 05:31:49 -0500
dana <dana@xxxxxxx> wrote:

> On 14 Jun 2018, at 03:41, Peter Stephenson <p.stephenson@xxxxxxxxxxx>
> wrote:
> >+	ignore_err = setgid(getgid());
> >+	(void)ignore_err;  
> 
> FWIW, that does seem to shut it up.

Yeah, that's basically what the GNU workaround did, translated into
standard C... hopefully standard enough for everyone.

pws




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