summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/zs.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-04-12 12:57:53 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-04-12 12:57:53 +0000
commit118ff35020024c11792c1aa21a17c399a0c7ae50 (patch)
tree9098033afb7543fe1823200e5c883020c95b7a7c /sys/arch/mvme68k/dev/zs.c
parent9d9ad9bde307f225e9fd28b6db3d7d42a0da8ff7 (diff)
Some of the line disciplines want to check for suser. Better to pass them
a process instead of using curproc. ok deraadt
Diffstat (limited to 'sys/arch/mvme68k/dev/zs.c')
-rw-r--r--sys/arch/mvme68k/dev/zs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mvme68k/dev/zs.c b/sys/arch/mvme68k/dev/zs.c
index 14d8fa9007a..9c23b1b634c 100644
--- a/sys/arch/mvme68k/dev/zs.c
+++ b/sys/arch/mvme68k/dev/zs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zs.c,v 1.30 2009/11/09 17:53:39 nicm Exp $ */
+/* $OpenBSD: zs.c,v 1.31 2010/04/12 12:57:52 tedu Exp $ */
/*
* Copyright (c) 2000 Steve Murphree, Jr.
@@ -368,7 +368,7 @@ zsopen(dev, flag, mode, p)
} else if (tp->t_state & TS_XCLUDE && suser(p, 0) != 0)
return (EBUSY);
- error = ((*linesw[tp->t_line].l_open) (dev, tp));
+ error = ((*linesw[tp->t_line].l_open) (dev, tp, p));
if (error == 0)
++zp->nzs_open;
@@ -392,7 +392,7 @@ zsclose(dev, flag, mode, p)
zp = &sc->sc_zs[zsside(dev)];
tp = zp->tty;
- (*linesw[tp->t_line].l_close) (tp, flag);
+ (*linesw[tp->t_line].l_close) (tp, flag, p);
s = splzs();
if ((zp->flags & ZS_CONSOLE) == 0 && (tp->t_cflag & HUPCL) != 0)
ZBIC(&zp->scc, 5, 0x82); /* drop DTR, RTS */