diff options
Diffstat (limited to 'sys/arch/hppa64/dev/pdc.c')
-rw-r--r-- | sys/arch/hppa64/dev/pdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa64/dev/pdc.c b/sys/arch/hppa64/dev/pdc.c index 5efb3d65068..8c10c580742 100644 --- a/sys/arch/hppa64/dev/pdc.c +++ b/sys/arch/hppa64/dev/pdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pdc.c,v 1.4 2009/10/31 06:40:16 deraadt Exp $ */ +/* $OpenBSD: pdc.c,v 1.5 2009/10/31 12:00:05 fgsch Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -214,7 +214,7 @@ pdcopen(dev, flag, mode, p) ttsetwater(tp); setuptimeout = 1; - } else if (tp->t_state&TS_XCLUDE && p->p_ucred->cr_uid != 0) { + } else if (tp->t_state&TS_XCLUDE && suser(p, 0) != 0) { splx(s); return (EBUSY); } |