[cvslog] (2002-07-09 05:43:37 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Tue Jul 9 00:44:02 CST 2002


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2002-07-09 05:43:37 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/misc.c src/patch.h src/mod/irc.mod/msgcmds.c

Log message:

added Zart's uname-fix patch

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.371 eggdrop1.6/doc/UPDATES1.6:1.372
--- eggdrop1.6/doc/UPDATES1.6:1.371	Tue Jul  9 00:40:55 2002
+++ eggdrop1.6/doc/UPDATES1.6	Tue Jul  9 00:43:27 2002
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.371 2002/07/09 05:40:55 guppy Exp $
+$Id: UPDATES1.6,v 1.372 2002/07/09 05:43:27 guppy Exp $
 
 Changes in Eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.11
 Found by  Fixed by  What...
+          Zart      the return values of uname() are now properly checked
           Zart      added handlen friendly code to various commands (this is a new patch to
                     replace the handlen friendly patch reverted in 1.6.10
           BarkerJr  don't show +inactive channels in a remote .who
Index: eggdrop1.6/src/misc.c
diff -u eggdrop1.6/src/misc.c:1.47 eggdrop1.6/src/misc.c:1.48
--- eggdrop1.6/src/misc.c:1.47	Tue Jan  1 21:46:35 2002
+++ eggdrop1.6/src/misc.c	Tue Jul  9 00:43:27 2002
@@ -7,7 +7,7 @@
  *   help system
  *   motd display and %var substitution
  *
- * $Id: misc.c,v 1.47 2002/01/02 03:46:35 guppy Exp $
+ * $Id: misc.c,v 1.48 2002/07/09 05:43:27 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -852,7 +852,7 @@
       break;
     case 'U':
 #ifdef HAVE_UNAME
-      if (!uname(&uname_info)) {
+      if (uname(&uname_info) >= 0) {
 	egg_snprintf(sub, sizeof sub, "%s %s", uname_info.sysname,
 		       uname_info.release);
 	towrite = sub;
Index: eggdrop1.6/src/mod/irc.mod/msgcmds.c
diff -u eggdrop1.6/src/mod/irc.mod/msgcmds.c:1.31 eggdrop1.6/src/mod/irc.mod/msgcmds.c:1.32
--- eggdrop1.6/src/mod/irc.mod/msgcmds.c:1.31	Sun Jun 16 22:58:54 2002
+++ eggdrop1.6/src/mod/irc.mod/msgcmds.c	Tue Jul  9 00:43:27 2002
@@ -2,7 +2,7 @@
  * msgcmds.c -- part of irc.mod
  *   all commands entered via /MSG
  *
- * $Id: msgcmds.c,v 1.31 2002/06/17 03:58:54 wcc Exp $
+ * $Id: msgcmds.c,v 1.32 2002/07/09 05:43:27 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -787,7 +787,7 @@
 #ifdef HAVE_UNAME
   struct utsname un;
 
-  if (!uname(&un) < 0) {
+  if (uname(&un) >= 0) {
 #endif
     ve_t = " ";
     un_t = "*unknown*";
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.772 eggdrop1.6/src/patch.h:1.773
--- eggdrop1.6/src/patch.h:1.772	Tue Jul  9 00:40:55 2002
+++ eggdrop1.6/src/patch.h	Tue Jul  9 00:43:27 2002
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.772 2002/07/09 05:40:55 guppy Exp $
+ * $Id: patch.h,v 1.773 2002/07/09 05:43:27 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1026193319");		/* current unixtime */
+patch("1026193379");		/* current unixtime */
 /*
  *
  *
  */
-patch("handlen-friendly2");
+patch("uname-fix");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list