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
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
2 matches
Mail list logo