Browse Source

Add missing macro #954

pull/957/head
Max Lv 8 years ago
parent
commit
a05a64f563
1 changed files with 3 additions and 0 deletions
  1. 3
      src/manager.c

3
src/manager.c

@ -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;

Loading…
Cancel
Save