mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Use suser(9) instead of checking p->p_ucred->cr_uid directly.
This commit is contained in:
parent
6db2e28142
commit
4957d1b4cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue