summaryrefslogtreecommitdiff
path: root/sys/arch/vax/vxt
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/vax/vxt
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/vax/vxt')
-rw-r--r--sys/arch/vax/vxt/qsc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/vxt/qsc.c b/sys/arch/vax/vxt/qsc.c
index 491eb43fc17..274a4c57375 100644
--- a/sys/arch/vax/vxt/qsc.c
+++ b/sys/arch/vax/vxt/qsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qsc.c,v 1.5 2009/11/09 17:53:39 nicm Exp $ */
+/* $OpenBSD: qsc.c,v 1.6 2010/04/12 12:57:52 tedu Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -613,7 +613,7 @@ qscopen(dev_t dev, int flag, int mode, struct proc *p)
*/
tp->t_dev = dev;
splx(s);
- return ((*linesw[tp->t_line].l_open)(dev, tp));
+ return ((*linesw[tp->t_line].l_open)(dev, tp, p));
}
int
@@ -627,7 +627,7 @@ qscclose(dev_t dev, int flag, int mode, struct proc *p)
sc = (struct qscsoftc *)qsc_cd.cd_devs[0];
tp = sc->sc_tty[line];
- (*linesw[tp->t_line].l_close)(tp, flag);
+ (*linesw[tp->t_line].l_close)(tp, flag, p);
ttyclose(tp);
return (0);