[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

another rsh fix



This patch allows connections to terminate that use STDIN and
encryption. Similar fix as for rsh but in rshd, and only affects
connections where encryption is enabled.

Appears to work...

-- 
Brian May <bam@snoopy.apana.org.au>
Index: rshd.c
===================================================================
RCS file: /homes/bam/cvsroot/debian/heimdal/appl/rsh/rshd.c,v
retrieving revision 1.1.1.3
retrieving revision 1.3
diff -c -r1.1.1.3 -r1.3
*** rshd.c	1999/08/06 00:09:03	1.1.1.3
--- rshd.c	1999/08/11 04:47:22	1.3
***************
*** 419,424 ****
--- 419,425 ----
  		syslog_and_die ("read: %m");
  	    else if (ret == 0) {
  		close (from0);
+ 		close (to0);
  		FD_CLR(from0, &real_readset);
  	    } else
  		net_write (to0, buf, ret);

PGP signature