Refine geteuid()

This commit is contained in:
Max Lv
2016-11-16 18:19:51 +08:00
parent a05a64f563
commit 79a98a66d8
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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