summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev/ite.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mac68k/dev/ite.c')
-rw-r--r--sys/arch/mac68k/dev/ite.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/mac68k/dev/ite.c b/sys/arch/mac68k/dev/ite.c
index 645c1faa39e..499c550a22b 100644
--- a/sys/arch/mac68k/dev/ite.c
+++ b/sys/arch/mac68k/dev/ite.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ite.c,v 1.3 1996/05/26 18:35:27 briggs Exp $ */
-/* $NetBSD: ite.c,v 1.22 1996/05/25 00:56:38 briggs Exp $ */
+/* $OpenBSD: ite.c,v 1.4 1996/06/08 16:21:10 briggs Exp $ */
+/* $NetBSD: ite.c,v 1.23 1996/06/01 00:13:39 scottr Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -833,9 +833,10 @@ iteopen(dev, mode, devtype, p)
if (!ite_initted)
return (ENXIO);
- if (ite_tty == NULL)
+ if (ite_tty == NULL) {
tp = ite_tty = ttymalloc();
- else
+ tty_attach(tp);
+ } else
tp = ite_tty;
if ((tp->t_state & (TS_ISOPEN | TS_XCLUDE)) == (TS_ISOPEN | TS_XCLUDE)
&& p->p_ucred->cr_uid != 0)