diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-01-30 12:17:38 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-01-30 12:17:38 +0000 |
| commit | 4e2d2aa1cd4f4f0351b1c984930edcdde311c296 (patch) | |
| tree | b7a48795d9967f095d3ec0a1a72925f21db011aa /sys/gnu/i386 | |
| parent | 871f5df0ef4736bad5a1d3445abbb12eb8754c30 (diff) | |
Notes
Diffstat (limited to 'sys/gnu/i386')
| -rw-r--r-- | sys/gnu/i386/isa/dgb.c | 5 | ||||
| -rw-r--r-- | sys/gnu/i386/isa/dgm.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/gnu/i386/isa/dgb.c b/sys/gnu/i386/isa/dgb.c index 7aeb2583bf0df..14211bc7b7a26 100644 --- a/sys/gnu/i386/isa/dgb.c +++ b/sys/gnu/i386/isa/dgb.c @@ -1,5 +1,5 @@ /*- - * dgb.c $Id: dgb.c,v 1.40 1998/08/23 08:26:39 bde Exp $ + * dgb.c $Id: dgb.c,v 1.41 1998/12/07 21:58:17 archie Exp $ * * Digiboard driver. * @@ -1032,7 +1032,8 @@ open_top: goto open_top; } } - if (tp->t_state & TS_XCLUDE && p->p_ucred->cr_uid != 0) { + if (tp->t_state & TS_XCLUDE && + suser(p->p_ucred, &p->p_acflag)) { error = EBUSY; goto out; } diff --git a/sys/gnu/i386/isa/dgm.c b/sys/gnu/i386/isa/dgm.c index 8b0ca1ff4e782..9321bb9f5015f 100644 --- a/sys/gnu/i386/isa/dgm.c +++ b/sys/gnu/i386/isa/dgm.c @@ -1,5 +1,5 @@ /*- - * $Id: dgm.c,v 1.5 1998/08/23 08:26:40 bde Exp $ + * $Id: dgm.c,v 1.6 1998/12/07 21:58:18 archie Exp $ * * This driver and the associated header files support the ISA PC/Xem * Digiboards. Its evolutionary roots are described below. @@ -833,7 +833,8 @@ open_top: goto open_top; } } - if (tp->t_state & TS_XCLUDE && p->p_ucred->cr_uid != 0) { + if (tp->t_state & TS_XCLUDE && + suser(p->p_ucred, &p->p_acflag)) { error = EBUSY; goto out; } |
