0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-01 17:48:56 +02:00

ircd: _WIN32 checks on geteuid() too

This commit is contained in:
William Pitcock 2016-03-20 02:04:26 -05:00
parent 538d208948
commit 1ba9eba550

View file

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