=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsh/Attic/rsh.c,v retrieving revision 1.15 retrieving revision 1.16 diff -c -r1.15 -r1.16 *** src/usr.bin/rsh/Attic/rsh.c 1997/07/25 21:05:39 1.15 --- src/usr.bin/rsh/Attic/rsh.c 1997/08/06 06:43:41 1.16 *************** *** 1,4 **** ! /* $OpenBSD: rsh.c,v 1.15 1997/07/25 21:05:39 mickey Exp $ */ /*- * Copyright (c) 1983, 1990 The Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: rsh.c,v 1.16 1997/08/06 06:43:41 deraadt Exp $ */ /*- * Copyright (c) 1983, 1990 The Regents of the University of California. *************** *** 41,47 **** #ifndef lint /*static char sccsid[] = "from: @(#)rsh.c 5.24 (Berkeley) 7/1/91";*/ ! static char rcsid[] = "$OpenBSD: rsh.c,v 1.15 1997/07/25 21:05:39 mickey Exp $"; #endif /* not lint */ #include --- 41,47 ---- #ifndef lint /*static char sccsid[] = "from: @(#)rsh.c 5.24 (Berkeley) 7/1/91";*/ ! static char rcsid[] = "$OpenBSD: rsh.c,v 1.16 1997/08/06 06:43:41 deraadt Exp $"; #endif /* not lint */ #include *************** *** 406,417 **** --- 406,420 ---- sendsig(signo) char signo; { + int save_errno = errno; + #ifdef KERBEROS if (doencrypt) (void)des_write(rfd2, &signo, 1); else #endif (void)write(rfd2, &signo, 1); + errno = save_errno; } #ifdef KERBEROS