Re: Semantics of "seteuid(uid)" vs. "setreuid(-1,uid)"

2004-06-10 Thread Stefan Eßer
On 2004-06-07 01:30 -0700, David Schultz <[EMAIL PROTECTED]> wrote: > On Sun, Jun 06, 2004, Stefan Eer wrote: > > Any reason, that there is a difference in semantics between: > > > > seteuid(id) vs. setreuid(-1, id)??? > > > > The tests performed on the arguments are different

Re: Semantics of "seteuid(uid)" vs. "setreuid(-1,uid)"

2004-06-07 Thread David Schultz
On Sun, Jun 06, 2004, Stefan Eer wrote: > Any reason, that there is a difference in semantics between: > > seteuid(id) vs. setreuid(-1, id)??? > > The tests performed on the arguments are different (assuming a > fixed arg of -1 for ruid) in that seteuid does not support the

Semantics of "seteuid(uid)" vs. "setreuid(-1,uid)"

2004-06-06 Thread Stefan Eßer
Any reason, that there is a difference in semantics between: seteuid(id) vs. setreuid(-1, id)??? The tests performed on the arguments are different (assuming a fixed arg of -1 for ruid) in that seteuid does not support the case of (euid == cr_uid): seteuid(euid):