mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-01 15:33:50 +00:00
Refine geteuid()
This commit is contained in:
+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
|
||||
|
||||
Reference in New Issue
Block a user