[Olsr-cvs] olsrd-current/src main.c,1.87,1.88

Andreas T�nnesen (spam-protected)
Tue Jan 10 18:43:34 CET 2006


Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2272/src

Modified Files:
	main.c 
Log Message:
Changed getuid to geteuid

Index: main.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/main.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -d -r1.87 -r1.88
*** main.c	10 Jan 2006 06:20:13 -0000	1.87
--- main.c	10 Jan 2006 17:43:32 -0000	1.88
***************
*** 119,123 ****
  #ifndef WIN32
    /* Check if user is root */
!   if(getuid())
      {
        fprintf(stderr, "You must be root(uid = 0) to run olsrd!\nExiting\n\n");
--- 119,123 ----
  #ifndef WIN32
    /* 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