[Olsr-cvs] olsrd-current/src main.c,1.83.2.2,1.83.2.3
Andreas T�nnesen
(spam-protected)
Tue Jan 10 18:44:19 CET 2006
Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2404/src
Modified Files:
Tag: olsrd_04
main.c
Log Message:
Changed getuid to geteuid
Index: main.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/main.c,v
retrieving revision 1.83.2.2
retrieving revision 1.83.2.3
diff -C2 -d -r1.83.2.2 -r1.83.2.3
*** main.c 10 Jan 2006 06:20:38 -0000 1.83.2.2
--- main.c 10 Jan 2006 17:44:17 -0000 1.83.2.3
***************
*** 119,123 ****
/* Check if user is root */
! if(getuid())
{
fprintf(stderr, "You must be root(uid = 0) to run olsrd!\nExiting\n\n");
--- 119,123 ----
/* Check if user is root */
! if(geteuid())
{
fprintf(stderr, "You must be root(uid = 0) to run olsrd!\nExiting\n\n");
More information about the Olsr-cvs
mailing list