Use suser(9) instead of checking p->p_ucred->cr_uid directly.
This commit is contained in:
parent
6db2e28142
commit
4957d1b4cb
@ -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