Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 1995 06:19:12 -0700
From:      David Greenman <davidg@Root.COM>
To:        dk+@ua.net
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: patch for PTYs not freed? (2.0.5-R) 
Message-ID:  <199510241319.GAA27405@corbin.Root.COM>
In-Reply-To: Your message of "Tue, 24 Oct 95 14:48:23 %2B0200." <199510241248.OAA16789@dog.farm.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
>I am gotting that same bug which bites me: 
>
>under screen, create virtual console (using PTY), run telnet/rlogin under it,
>kill the shell process (telnet not killed), re-create virtual console 
>(same PTY used), alas, I got input from shell/old telnet process intermixed.
>
>secutity hole as well.
>
>I remember discussion about this some time ago; was anything like a patch
>fixing the problem issued? 

   The problem has been fixed in both -current and -stable.

Index: tty_pty.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/tty_pty.c,v
retrieving revision 1.20
diff -c -r1.20 tty_pty.c
*** 1.20	1995/09/08 11:08:38
--- tty_pty.c	1995/09/21 01:42:42
***************
*** 31,37 ****
   * SUCH DAMAGE.
   *
   *	@(#)tty_pty.c	8.2 (Berkeley) 9/23/93
!  * $Id: tty_pty.c,v 1.20 1995/09/08 11:08:38 bde Exp $
   */
  
  /*
--- 31,37 ----
   * SUCH DAMAGE.
   *
   *	@(#)tty_pty.c	8.2 (Berkeley) 9/23/93
!  * $Id: tty_pty.c,v 1.21 1995/09/19 12:26:47 bde Exp $
   */
  
  /*
***************
*** 322,328 ****
  	}
  
  	tp->t_oproc = 0;		/* mark closed */
- 	tp->t_session = 0;
  	return (0);
  }
  
--- 322,327 ----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510241319.GAA27405>