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