? .hg
? 2010.08.03
? aclocal.m4
? autom4te.cache
? bcn.ircd.motd
? cache
? config.settings.bac
? config.settings.system
? ircd.log
? ircd.pid
? ircd.tune
? location.conf
? motd.txt
? nopost-1.1
? nopost.tar.gz
? patch1.patch
? robots.txt
? server.cert.pem
? server.key.pem
? server.req.pem
? smotd.txt
? tmp
? unrealircd.conf
? valgrind.unreal.suppress
? autoconf/acinclude.m4
? doc/AntiRandom
? extras/c-ares
? extras/c-ares-1.6.0
? extras/c-ares-1.7.3
? extras/c-ares-1.7.3.tar.gz.asc
? extras/c-ares.tar
? extras/regexp
? extras/tre-0.7.5
? extras/tre-0.8.0
? extras/tre.tar
? ircdcron/ircd.cron
? src/modules/antirandom.c
? src/modules/callerid.c
? src/modules/m_dnsbl.c
? src/modules/m_dnsbl.tar.gz
? src/modules/m_soper.c
? src/modules/testchanmodehook.c
Index: src/ircd.c
===================================================================
RCS file: /cvs/unreal/src/ircd.c,v
retrieving revision 1.1.1.1.6.1.2.190.2.50
diff -u -B -r1.1.1.1.6.1.2.190.2.50 ircd.c
--- src/ircd.c	16 Jun 2010 05:44:14 -0000	1.1.1.1.6.1.2.190.2.50
+++ src/ircd.c	20 Aug 2010 03:52:36 -0000
@@ -1081,6 +1081,18 @@
 	euid = geteuid();
 	gid = getgid();
 	egid = getegid();
+
+#ifndef IRC_USER
+	if (!euid)
+	{
+		fprintf(stderr,
+			"WARNING: You are running UnrealIRCd as root and it is not\n"
+			"         configured to drop priviliges. This is _very_ dangerous,\n"
+			"         as any compromise of your UnrealIRCd is the same as\n"
+			"         giving a cracker root SSH access to your box.\n");
+	}
+#endif /* IRC_USER */
+
 # ifdef	PROFIL
 	(void)monstartup(0, etext);
 	(void)moncontrol(1);
