summaryrefslogtreecommitdiffstats
path: root/lang/eggdrop/patches/004-main_c.patch
blob: ad263cd3bf35ed438cd66fef644ec87622a8a463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- eggdrop/src/main.c	2004-07-02 22:21:08.000000000 +0100
+++ eggdrop/src/main-patched/main.c	2008-09-08 21:37:18.000000000 +0100
@@ -792,8 +792,8 @@
   printf("\n%s\n", version);
 
   /* Don't allow eggdrop to run as root */
-  if (((int) getuid() == 0) || ((int) geteuid() == 0))
-    fatal("ERROR: Eggdrop will not run as root!", 0);
+  if (((int) getuid() == 666) || ((int) geteuid() == 666))
+    fatal("ERROR: Eggdrop will not run the devil!", 0);
 
   init_dcc_max();
   init_userent();