Merge in Lite2: buf fix with comparison of wrong field against EXTPROC.

Did not accept change of second argument to ioctl from int to u_long.
Reviewed by:	davidg & bde
This commit is contained in:
Jeffrey Hsu 1996-03-11 02:24:39 +00:00
parent 7c409b8a56
commit 45fe51e9d3

View File

@ -30,8 +30,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)tty_pty.c 8.2 (Berkeley) 9/23/93
* $Id: tty_pty.c,v 1.35 1996/01/25 07:21:50 phk Exp $
* @(#)tty_pty.c 8.4 (Berkeley) 2/20/95
* $Id: tty_pty.c,v 1.38 1996/02/29 00:18:11 hsu Exp $
*/
/*
@ -638,7 +638,7 @@ ptyioctl(dev, cmd, data, flag, p)
}
tp->t_lflag |= EXTPROC;
} else {
if ((tp->t_state & EXTPROC) &&
if ((tp->t_lflag & EXTPROC) &&
(pti->pt_flags & PF_PKT)) {
pti->pt_send |= TIOCPKT_IOCTL;
ptcwakeup(tp, FREAD);