summaryrefslogtreecommitdiff
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-11-01 20:56:57 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-11-01 20:56:57 +0000
commitfc5d29ef7d6767747043a78fa18554ccd4e4b045 (patch)
treed29ed0901454dffcc55e4c0606aef0cd915d84eb /sys/kern/tty_pty.c
parent309b8fb98a92ca7f2b5785d934c63772e829f440 (diff)
Notes
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r--sys/kern/tty_pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index a01d04e26cf7..7e00ec4dda83 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -185,7 +185,7 @@ ptsopen(dev, flag, devtype, td)
tp->t_lflag = TTYDEF_LFLAG;
tp->t_cflag = TTYDEF_CFLAG;
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
- } else if (tp->t_state & TS_XCLUDE && suser(p)) {
+ } else if (tp->t_state & TS_XCLUDE && suser_xxx(p->p_ucred, NULL, 0)) {
return (EBUSY);
} else if (pti->pt_prison != p->p_ucred->cr_prison) {
return (EBUSY);