[olsr-dev] getuid() and getgui() on startup

Kosta Welke (spam-protected)
Tue Jan 10 03:31:13 CET 2006


Hi!

In main.c, olsrd checks if the user running the process is root:
if(getuid() || getgid())
and exits if that is not the case.

Shouldn't geteuid() suffice? (It works here)

I am asking, because I am running olsrd from a setuid wrapper over a 
shellscript (yes, there is no other way).

Sorry for bugging you about such trivialies... i really dont want to 
nitpick...

Kosta




More information about the Olsr-dev mailing list