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/sio/sio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/sio/sio.c') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 6a2084e..ee031b4 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sio.c,v 1.219 1998/12/13 23:12:54 steve Exp $ + * $Id: sio.c,v 1.220 1999/01/19 00:21:47 peter Exp $ * from: @(#)com.c 7.5 (Berkeley) 5/16/91 * from: i386/isa sio.c,v 1.215 */ @@ -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)) { error = EBUSY; goto out; } -- cgit v1.1