diff options
| author | 2010-04-12 12:57:51 +0000 | |
|---|---|---|
| committer | 2010-04-12 12:57:51 +0000 | |
| commit | 79f6c33a904170343535140691e2309d78acab37 (patch) | |
| tree | 07f11ec25d6db1769348f1fd69e35618a29babac /sys/kern/tty_pty.c | |
| parent | dont need to call scsi_done with splbio. the midlayer protects (diff) | |
| download | wireguard-openbsd-79f6c33a904170343535140691e2309d78acab37.tar.xz wireguard-openbsd-79f6c33a904170343535140691e2309d78acab37.zip | |
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/kern/tty_pty.c')
| -rw-r--r-- | sys/kern/tty_pty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index cac1312b111..9833b619580 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_pty.c,v 1.44 2010/04/02 20:20:23 nicm Exp $ */ +/* $OpenBSD: tty_pty.c,v 1.45 2010/04/12 12:57:52 tedu Exp $ */ /* $NetBSD: tty_pty.c,v 1.33.4.1 1996/06/02 09:08:11 mrg Exp $ */ /* @@ -265,7 +265,7 @@ ptsopen(dev_t dev, int flag, int devtype, struct proc *p) if (error) return (error); } - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = (*linesw[tp->t_line].l_open)(dev, tp, p); ptcwakeup(tp, FREAD|FWRITE); return (error); } @@ -277,7 +277,7 @@ ptsclose(dev_t dev, int flag, int mode, struct proc *p) struct tty *tp = pti->pt_tty; int error; - error = (*linesw[tp->t_line].l_close)(tp, flag); + error = (*linesw[tp->t_line].l_close)(tp, flag, p); error |= ttyclose(tp); ptcwakeup(tp, FREAD|FWRITE); return (error); |
