Patch-ID# 100414-01
Keywords: application, previous, get, security, session, telnet, pseudo-tty, pty
Synopsis: SunOS4.1;4.1.1: programs using pty get output from previous application
Date: 25/Oct/91

SunOS release: 4.1.1, 4.1

Unbundled Product: 

Unbundled Release: 

Topic: In ptcopen(), setup a check to see if slave side is in use.

BugId's fixed with this patch: 1070495

Architectures for which this patch is available: sun3, sun3x, sun4, sun4c 

Patches which may conflict with this patch: 100187, 100188 

Obsoleted by: 

Files included with this patch: tty_pty.o

Problem Description: 
This problem affects every application using psudo-tty.

It can be reproduced in the following way :
- from a cmdtool run
        # netstat 3 &
- kill the cmdtool
- start a new cmdtool and you can get the output
 from netstat.



Install Instructions: 

Sun3 version works on both sun3 and sun3x
Sun4 version works on both sun4 and sun4c

As root, install the patches:
 
Save the previous system files:
mv /sys/`arch -k`/OBJ/tty_pty.o /sys/`arch -k`/OBJ/tty_pty.o.orig
 
Install the new files into the system configuration area:
cp `arch`/{4.1,4.1.1}/tty_pty.o /sys/`arch -k`/OBJ
 
 
Config a new kernel and reboot the machine with this kernel.



