diff --git a/sys/nfsclient/nfs_lock.c b/sys/nfsclient/nfs_lock.c index ee028dc33502..264284f16086 100644 --- a/sys/nfsclient/nfs_lock.c +++ b/sys/nfsclient/nfs_lock.c @@ -129,11 +129,6 @@ nfs_dolock(struct vop_advlock_args *ap) msg.lm_fl = *fl; msg.lm_wait = ap->a_flags & F_WAIT; msg.lm_getlk = ap->a_op == F_GETLK; - /* - * XXX: the lm_cred assignment below directly exports a ucred - * structure to userland. This is probably wrong, and should at - * least be xucred. - */ bcopy(VFSTONFS(vp->v_mount)->nm_nam, &msg.lm_addr, min(sizeof msg.lm_addr, VFSTONFS(vp->v_mount)->nm_nam->sa_len)); msg.lm_fh_len = NFS_ISV3(vp) ? VTONFS(vp)->n_fhsize : NFSX_V2FH;