From a68e018a5e4fb252e4636e5b987a7a45a62baef4 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 7 Dec 1996 11:07:20 +0000 Subject: [PATCH] Fixed `stty [-]extproc'. It set extproc to a semi-random state (always off if there are no other options, always (?) on if another option that changes the state is processed earlier). --- bin/stty/key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/stty/key.c b/bin/stty/key.c index 362b6f110be4..58aa60e002b2 100644 --- a/bin/stty/key.c +++ b/bin/stty/key.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: key.c,v 1.3 1995/03/19 13:29:25 joerg Exp $ + * $Id: key.c,v 1.4 1995/04/28 19:29:29 ache Exp $ */ #ifndef lint @@ -192,7 +192,7 @@ f_extproc(ip) struct info *ip; { - if (ip->set) { + if (!ip->off) { int tmp = 1; (void)ioctl(ip->fd, TIOCEXT, &tmp); } else {