aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/si
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-01-30 12:17:38 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-01-30 12:17:38 +0000
commit4e2d2aa1cd4f4f0351b1c984930edcdde311c296 (patch)
treeb7a48795d9967f095d3ec0a1a72925f21db011aa /sys/dev/si
parent871f5df0ef4736bad5a1d3445abbb12eb8754c30 (diff)
Notes
Diffstat (limited to 'sys/dev/si')
-rw-r--r--sys/dev/si/si.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 230e38726761..95a4e0495509 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.77 1998/08/23 10:12:12 bde Exp $
+ * $Id: si.c,v 1.78 1999/01/12 00:36:35 eivind Exp $
*/
#ifndef lint
@@ -1205,7 +1205,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)) {
DPRINT((pp, DBG_OPEN|DBG_FAIL,
"already open and EXCLUSIVE set\n"));
error = EBUSY;