mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 18:53:41 +00:00
Add missing macro #954
This commit is contained in:
@@ -848,9 +848,12 @@ main(int argc, char **argv)
|
||||
if (user != NULL && ! run_as(user)) {
|
||||
FATAL("failed to switch user");
|
||||
}
|
||||
|
||||
#ifndef __MINGW32__
|
||||
if (getuid() == 0){
|
||||
LOGI("You are running this process as the root user!");
|
||||
}
|
||||
#endif
|
||||
|
||||
struct passwd *pw = getpwuid(getuid());
|
||||
const char *homedir = pw->pw_dir;
|
||||
|
||||
Reference in New Issue
Block a user