Browse Source

Refine geteuid()

pull/957/head
Max Lv 8 years ago
parent
commit
79a98a66d8
5 changed files with 5 additions and 5 deletions
  1. 2
      src/local.c
  2. 2
      src/manager.c
  3. 2
      src/redir.c
  4. 2
      src/server.c
  5. 2
      src/tunnel.c

2
src/local.c

@ -1445,7 +1445,7 @@ main(int argc, char **argv)
}
#ifndef __MINGW32__
if (getuid() == 0){
if (geteuid() == 0){
LOGI("You are running this process as the root user!");
}
#endif

2
src/manager.c

@ -850,7 +850,7 @@ main(int argc, char **argv)
}
#ifndef __MINGW32__
if (getuid() == 0){
if (geteuid() == 0){
LOGI("You are running this process as the root user!");
}
#endif

2
src/redir.c

@ -1025,7 +1025,7 @@ main(int argc, char **argv)
FATAL("failed to switch user");
}
if (getuid() == 0){
if (geteuid() == 0){
LOGI("You are running this process as the root user!");
}

2
src/server.c

@ -1875,7 +1875,7 @@ main(int argc, char **argv)
}
#ifndef __MINGW32__
if (getuid() == 0){
if (geteuid() == 0){
LOGI("You are running this process as the root user!");
}
#endif

2
src/tunnel.c

@ -1033,7 +1033,7 @@ main(int argc, char **argv)
}
#ifndef __MINGW32__
if (getuid() == 0){
if (geteuid() == 0){
LOGI("You are running this process as the root user!");
}
#endif

Loading…
Cancel
Save