|
|
| version 1.33, 2004/04/24 04:32:03 | version 1.34, 2004/05/19 22:52:58 |
|---|---|
| Line 2728 revoke(struct revoke_args *uap) | Line 2728 revoke(struct revoke_args *uap) |
| if (p->p_ucred->cr_uid != vattr.va_uid && | if (p->p_ucred->cr_uid != vattr.va_uid && |
| (error = suser_cred(p->p_ucred, PRISON_ROOT))) | (error = suser_cred(p->p_ucred, PRISON_ROOT))) |
| goto out; | goto out; |
| if (vcount(vp) > 1) | if (count_udev(vp->v_udev) > 0) |
| VOP_REVOKE(vp, REVOKEALL); | VOP_REVOKE(vp, REVOKEALL); |
| out: | out: |
| vrele(vp); | vrele(vp); |