From 67f187760e45386080ca97c6bc73608f9fe52ae5 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 30 Jan 1999 12:17:38 +0000 Subject: Use suser() to check for super user rather than examining cr_uid directly. Use TTYDEF_SPEED rather than 9600 a couple of places. Reviewed by: bde, with a few grumbles. --- sys/dev/rc/rc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/rc/rc.c') diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index ae1108a..a5d96ec 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -766,7 +766,8 @@ again: goto again; } } - 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; } -- cgit v1.1