From 4957d1b4cb07c4a4c9f1ffdb0474bcd4cebeef1f Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 23 Jan 2001 22:22:25 +0000 Subject: [PATCH] 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(-) diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index c8d43460e4a..3305eeeb717 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); /*