packages/lang/eggdrop/patches/004-main_c.patch
florian 2977058bb4 Add eggdrop from #3980
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13071 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-28 23:08:11 +00:00

15 lines
496 B
Diff

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