From 600bbce0557efcbccaddcf8c91fc54ce74aa2182 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 23 Jan 2001 22:22:25 +0000 Subject: Use suser(9) instead of checking p->p_ucred->cr_uid directly. --- sys/dev/usb/umodem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index c8d4346..3305eee 100644 --- a/sys/dev/usb/umodem.c +++ b/sys/dev/usb/umodem.c @@ -598,7 +598,7 @@ umodemopen(dev, flag, mode, p) if (ISSET(tp->t_state, TS_ISOPEN) && ISSET(tp->t_state, TS_XCLUDE) && - p->p_ucred->cr_uid != 0) + suser(p)) return (EBUSY); /* -- cgit v1.1