summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-30 19:56:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-30 19:56:54 +0000
commit791b56d401c69e32221ba40b8d1114801e96b834 (patch)
treeaeaa390fad42746039c43196aacb5878b936f948 /configure
parent2080de06813794dc52ee9d0a0809e3411fb9a43b (diff)
Added check that forbids configuration as root >:-)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2988 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index cf5c0fb19..aae2a75a2 100755
--- a/configure
+++ b/configure
@@ -12,6 +12,11 @@
#
########################################
+if (!$>) {
+ print "Cannot configure/build InspIRCd as root.\n";
+ exit(666);
+}
+
chomp($topdir = `pwd`);
$this = resolve_directory($topdir); # PWD, Regardless.
@modlist = (); # Declare for Module List..