mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-27 19:23:40 +00:00
Refine geteuid()
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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!");
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user