Fix a superuser credential check.

Reviewed by:	phk
Approved by:	jkh
This commit is contained in:
bsd 2000-02-29 22:58:59 +00:00
parent e17787fbf1
commit c56af6f61f

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. */