CSPR #8: "better" diff

J. Joseph Max Katz (jkatz@CPIO.ORG)
Wed, 06 Aug 1997 10:54:14 -0500

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!"