[cvslog] [CVS] Module eggdrop1.6: Change committed

cvs at eggheads.org cvs at eggheads.org
Sat Jun 26 14:26:16 CST 2010


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2010-06-26 20:26:16 UTC
Committer  : Rumen Stoyanov <pseudo at egg6.net>

Modified files:
     doc/Changes1.6 src/main.c src/patch.h

Log message:

Removed root uid check when compiled on Cygwin, as it was reported to cause problems for some cygwin installations, while it doesn't provide
any protection, as administrator accounts appear as non-zero uids anyway.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/Changes1.6
diff -u eggdrop1.6/doc/Changes1.6:1.79 eggdrop1.6/doc/Changes1.6:1.80
--- eggdrop1.6/doc/Changes1.6:1.79	Wed Mar 24 07:14:50 2010
+++ eggdrop1.6/doc/Changes1.6	Sat Jun 26 14:26:05 2010
@@ -1,4 +1,4 @@
-$Id: Changes1.6,v 1.79 2010/03/24 13:14:50 pseudo Exp $
+$Id: Changes1.6,v 1.80 2010/06/26 20:26:05 pseudo Exp $
 
 Eggdrop Changes (since version 1.6.0)
 
@@ -6,6 +6,10 @@
 
 1.6.20 (CVS):
 
+  - Removed root uid check when compiled on Cygwin, as it was reported to
+    cause problems for some cygwin installations, while it doesn't provide
+    any protection, as administrator accounts appear as non-zero uids anyway.
+
   - Channels added in the config are no longer static. Added access to the
     static flag via new channel setting, available to permanent owners only.
   - Removed the example channel adds from eggdrop.conf.
Index: eggdrop1.6/src/main.c
diff -u eggdrop1.6/src/main.c:1.132 eggdrop1.6/src/main.c:1.133
--- eggdrop1.6/src/main.c:1.132	Mon Mar  8 05:18:07 2010
+++ eggdrop1.6/src/main.c	Sat Jun 26 14:26:05 2010
@@ -5,7 +5,7 @@
  *   command line arguments
  *   context and assert debugging
  *
- * $Id: main.c,v 1.132 2010/03/08 11:18:07 pseudo Exp $
+ * $Id: main.c,v 1.133 2010/06/26 20:26:05 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -800,9 +800,14 @@
 
   printf("\n%s\n", version);
 
-  /* Don't allow eggdrop to run as root */
+#ifndef CYGWIN_HACKS
+  /* Don't allow eggdrop to run as root
+   * This check isn't useful under cygwin and has been
+   * reported to cause trouble in some situations.
+   */
   if (((int) getuid() == 0) || ((int) geteuid() == 0))
     fatal("ERROR: Eggdrop will not run as root!", 0);
+#endif
 
   init_dcc_max();
   init_userent();
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.1247 eggdrop1.6/src/patch.h:1.1248
--- eggdrop1.6/src/patch.h:1.1247	Wed Mar 24 07:14:50 2010
+++ eggdrop1.6/src/patch.h	Sat Jun 26 14:26:05 2010
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.1247 2010/03/24 13:14:50 pseudo Exp $
+ * $Id: patch.h,v 1.1248 2010/06/26 20:26:05 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1269436354");            /* current unixtime */
+patch("1277580344");            /* current unixtime */
 /*
  *
  *
  */
-patch("newstaticchans");
+patch("cygroot");
 /*
  *
  *
----------------------- End of diff -----------------------


More information about the Changes mailing list