delorie.com/archives/browse.cgi | search |
Hi Jason, On Tue, Jan 21, 2003 at 01:31:06PM -0500, Jason Tishler wrote: > But, the above does not handle the following: > > setregid(-1, gid); > > which is the motivation for this patch. this was just an excerpt, sorry for being unclear. Your code: if (rgid != -1) ERROR; return setegid (egid); My tiny extension: if (rgid != -1) if (rgid == egid) return setuid (rgid); ERROR; return setegid (egid); Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |