Use suser(9) instead of checking p->p_ucred->cr_uid directly.

This commit is contained in:
John Baldwin 2001-01-23 22:22:25 +00:00
parent 6db2e28142
commit 4957d1b4cb

View File

@ -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);
/*