diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-04-12 12:57:53 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-04-12 12:57:53 +0000 |
commit | 118ff35020024c11792c1aa21a17c399a0c7ae50 (patch) | |
tree | 9098033afb7543fe1823200e5c883020c95b7a7c /sys/arch/sh | |
parent | 9d9ad9bde307f225e9fd28b6db3d7d42a0da8ff7 (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/sh')
-rw-r--r-- | sys/arch/sh/dev/scif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sh/dev/scif.c b/sys/arch/sh/dev/scif.c index 12d13971470..c4bf2fdd4d2 100644 --- a/sys/arch/sh/dev/scif.c +++ b/sys/arch/sh/dev/scif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scif.c,v 1.10 2009/11/09 17:53:39 nicm Exp $ */ +/* $OpenBSD: scif.c,v 1.11 2010/04/12 12:57:52 tedu Exp $ */ /* $NetBSD: scif.c,v 1.47 2006/07/23 22:06:06 ad Exp $ */ /*- @@ -771,7 +771,7 @@ scifopen(dev_t dev, int flag, int mode, struct proc *p) if (error) goto bad; - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = (*linesw[tp->t_line].l_open)(dev, tp, p); if (error) goto bad; @@ -792,7 +792,7 @@ scifclose(dev_t dev, int flag, int mode, struct proc *p) if (!ISSET(tp->t_state, TS_ISOPEN)) return (0); - (*linesw[tp->t_line].l_close)(tp, flag); + (*linesw[tp->t_line].l_close)(tp, flag, p); ttyclose(tp); return (0); |