summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/z8530tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/macppc/dev/z8530tty.c')
-rw-r--r--sys/arch/macppc/dev/z8530tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/z8530tty.c b/sys/arch/macppc/dev/z8530tty.c
index 69ef381bcd5..ba510eed0ef 100644
--- a/sys/arch/macppc/dev/z8530tty.c
+++ b/sys/arch/macppc/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.9 2009/10/31 06:40:16 deraadt Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.10 2009/10/31 12:00:06 fgsch Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*-
@@ -506,7 +506,7 @@ zsopen(dev_t dev, int flags, int mode, struct proc *p)
if (ISSET(tp->t_state, TS_ISOPEN) &&
ISSET(tp->t_state, TS_XCLUDE) &&
- p->p_ucred->cr_uid != 0)
+ suser(p, 0) != 0)
return (EBUSY);
s = spltty();