diff options
Diffstat (limited to 'sys/alpha/tlsb/zs_tlsb.c')
-rw-r--r-- | sys/alpha/tlsb/zs_tlsb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/alpha/tlsb/zs_tlsb.c b/sys/alpha/tlsb/zs_tlsb.c index e88b8b1..0bfa15d 100644 --- a/sys/alpha/tlsb/zs_tlsb.c +++ b/sys/alpha/tlsb/zs_tlsb.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: zs_tlsb.c,v 1.5 1998/07/31 09:20:01 dfr Exp $ + * $Id: zs_tlsb.c,v 1.6 1998/11/15 18:25:16 dfr Exp $ */ /* * This driver is a hopeless hack to get the SimOS console working. A real @@ -266,9 +266,10 @@ zsopen(dev_t dev, int flag, int mode, struct proc *p) tp->t_oflag = TTYDEF_OFLAG; tp->t_cflag = TTYDEF_CFLAG|CLOCAL; tp->t_lflag = TTYDEF_LFLAG; - tp->t_ispeed = tp->t_ospeed = 9600; + tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; ttsetwater(tp); - } else if (tp->t_state&TS_XCLUDE && p->p_ucred->cr_uid != 0) { + } else if (tp->t_state & TS_XCLUDE && + suser(p->p_ucred, &p->p_acflag)) { splx(s); return EBUSY; } |