Re: setreuid/setresuid code.

2011-10-16 Thread Samuel Thibault
Roland McGrath, le Sun 16 Oct 2011 09:01:15 -0700, a écrit : > At the end we call __setauth to actually do something. That clears > _hurd_id.valid when it installs the new port. Ah, that's the part I missed, thanks. Samuel

Re: setreuid/setresuid code.

2011-10-16 Thread Roland McGrath
> if (_hurd_id.aux.nuids == 0) > { > newaux = &ruid; > naux = 1; > } In this case we don't touch _hurd_id at all, so nothing has changed yet. > else > { > _hurd_id.aux.uids[0] = ruid; > _hurd_id.valid =

setreuid/setresuid code.

2011-10-15 Thread Samuel Thibault
Hello, I'm having a look at the setreuid code, and there's something I don't understand: newaux = _hurd_id.aux.uids; naux = _hurd_id.aux.nuids; if (ruid != -1) { if (_hurd_id.aux.nuids == 0) { newaux = &ruid; naux = 1;