ircd: _WIN32 checks on geteuid() too
This commit is contained in:
parent
538d208948
commit
1ba9eba550
1 changed files with 2 additions and 0 deletions
|
@ -548,12 +548,14 @@ charybdis_main(int argc, char *argv[])
|
|||
{
|
||||
int fd;
|
||||
|
||||
#ifndef _WIN32
|
||||
/* Check to see if the user is running us as root, which is a nono */
|
||||
if(geteuid() == 0)
|
||||
{
|
||||
fprintf(stderr, "Don't run ircd as root!!!\n");
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
init_sys();
|
||||
|
||||
|
|
Loading…
Reference in a new issue