Fix a superuser credential check.

Reviewed by:	phk
Approved by:	jkh
This commit is contained in:
Brian S. Dean 2000-02-29 22:58:59 +00:00
parent 7caf73fb3c
commit e777d9c31a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57635

View File

@ -51,8 +51,10 @@ ipcperm(p, perm, mode)
int mode;
{
struct ucred *cred = p->p_ucred;
int error;
if (suser(p))
error = suser(p);
if (!error)
return (0);
/* Check for user match. */