exec after seteuid

Corinna Vinschen cygwin-patches@cygwin.com
Mon Jun 9 15:13:00 GMT 2003

On Mon, Jun 09, 2003 at 05:03:39PM +0200, Corinna Vinschen wrote:
> On Mon, Jun 09, 2003 at 04:51:19PM +0200, Corinna Vinschen wrote:
> > Oh boy :-(  So I have to upload another version of login which drops the
> > call to setegid() entirely.  Switching back to uid 18 the just reverts
> > to self and the last call to setgid/setuid uses the logon token.
> Or better, call setegid() twice.  This makes the chdir result more
> reliable, I guess.

Nope, that doesn't work.  I've uploaded a new login which only
setuids forth and back.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

More information about the Cygwin-patches mailing list