summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-23 22:22:25 +0000
committerjhb <jhb@FreeBSD.org>2001-01-23 22:22:25 +0000
commit600bbce0557efcbccaddcf8c91fc54ce74aa2182 (patch)
tree8d6a938dc468a4849e91dda30f2740276f081c3d /sys/dev
parentdede119c776109a4539db17a7958ddd756aea5f6 (diff)
downloadFreeBSD-src-600bbce0557efcbccaddcf8c91fc54ce74aa2182.zip
FreeBSD-src-600bbce0557efcbccaddcf8c91fc54ce74aa2182.tar.gz
Use suser(9) instead of checking p->p_ucred->cr_uid directly.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/umodem.c2
1 files changed, 1 insertions, 1 deletions
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);
/*
OpenPOWER on IntegriCloud