diff options
| author | Christian S.J. Peron <csjp@FreeBSD.org> | 2006-01-31 17:17:45 +0000 |
|---|---|---|
| committer | Christian S.J. Peron <csjp@FreeBSD.org> | 2006-01-31 17:17:45 +0000 |
| commit | f737c45c91bb68cf08d8df7bd075ac08db4adea9 (patch) | |
| tree | b701024421c90912d3840618187a24953ee0947f /sys/kern/tty_pty.c | |
| parent | dad5bb64858c2ab509ffc0283ae3c460b09d0fff (diff) | |
Notes
Diffstat (limited to 'sys/kern/tty_pty.c')
| -rw-r--r-- | sys/kern/tty_pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 2cc1d0fe2445..364f2731b815 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -200,7 +200,7 @@ ptsopen(struct cdev *dev, int flag, int devtype, struct thread *td) ttyinitmode(tp, 1, 0); } else if (tp->t_state & TS_XCLUDE && suser(td)) return (EBUSY); - else if (pt->pt_prison != td->td_ucred->cr_prison) + else if (pt->pt_prison != td->td_ucred->cr_prison && suser(td)) return (EBUSY); if (tp->t_oproc) /* Ctrlr still around. */ (void)ttyld_modem(tp, 1); |
