OT: X.org bug ( can someone enlighten me ? )

2006-05-03 Thread jamex
Hi, I don't understand this piece of code: if (getuid() == 0 || geteuid() != 0) Why check if the geteuid() != 0 if we are only wanting to root to run the block inside the if statement? My reasoning is that if geteuid != 0 then the statement evaluates to true and the code block gets run just

Re: OT: X.org bug ( can someone enlighten me ? )

2006-05-03 Thread Ted Unangst
On 5/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I don't understand this piece of code: if (getuid() == 0 || geteuid() != 0) Why check if the geteuid() != 0 if we are only wanting to root to run the block inside the if statement? getuid returns the real user id, geteuid returns the