Add missing macro #954

This commit is contained in:
Max Lv
2016-11-16 14:40:09 +08:00
parent 2b7c487b09
commit a05a64f563
+3
View File
@@ -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;