mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Use suser(9) instead of checking p->p_ucred->cr_uid directly.
This commit is contained in:
parent
6db2e28142
commit
4957d1b4cb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71477
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user