[5111] in bugtraq

home help back first fref pref prev next nref lref last post

CSPR #8: "better" diff

daemon@ATHENA.MIT.EDU (J. Joseph Max Katz)
Wed Aug 6 12:45:45 1997

Date: 	Wed, 6 Aug 1997 10:54:14 -0500
Reply-To: "J. Joseph Max Katz" <jkatz@CPIO.ORG>
From: "J. Joseph Max Katz" <jkatz@CPIO.ORG>
To: BUGTRAQ@NETSPACE.ORG

Hello!

I can only apologize for sending out the wrong diff with our release. Here
is a much better and appropriate "diff -u" of identd.c

Index: libexec/identd/identd.c
===================================================================
RCS file: /cvs/src/libexec/identd/identd.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- identd.c    1997/07/23 20:36:27     1.4
+++ identd.c    1997/07/29 07:49:31     1.5
@@ -1,5 +1,5 @@
 /*
-**     $Id: identd.c,v 1.4 1997/07/23 20:36:27 kstailey Exp $
+**     $Id: identd.c,v 1.5 1997/07/29 07:49:31 deraadt Exp $
 **
 ** identd.c                      A TCP/IP link identification protocol server
 **
@@ -178,10 +178,12 @@
 #else
   int status;
 #endif
+  int save_errno = errno;

   while (wait3(&status, WNOHANG, NULL) > 0)
     ;

+  errno = save_errno;
 #ifndef SIGRETURN_TYPE_IS_VOID
   return 0;
 #endif


/----------------------------------------------------------------
/ Jonathan Katz, jkatz@cpio.org         /  http://www.cpio.org
/ Student, Unix geek, Security guy      /  http://posse.cpio.org
/ President and Founder: Corinne Posse  /  http://jon.katz.com
/ Phone: +1 (317) 590-7092              /
/     "The meek may inherit the earth,
/             but the rest of us will seize the stars!"

home help back first fref pref prev next nref lref last post