diff --git a/src/afs/FBSD/osi_vnodeops.c b/src/afs/FBSD/osi_vnodeops.c index dc901c58c7..d68e804c17 100644 --- a/src/afs/FBSD/osi_vnodeops.c +++ b/src/afs/FBSD/osi_vnodeops.c @@ -203,7 +203,6 @@ afs_vop_lookup(ap) struct vnode *vp, *dvp; int flags = ap->a_cnp->cn_flags; int lockparent; /* 1 => lockparent flag is set */ - int wantparent; /* 1 => wantparent or lockparent flag */ dvp = ap->a_dvp; if (dvp->v_type != VDIR) { @@ -216,7 +215,6 @@ afs_vop_lookup(ap) GETNAME(); lockparent = flags & LOCKPARENT; - wantparent = flags & (LOCKPARENT | WANTPARENT); #if __FreeBSD_version < 1000021 cnp->cn_flags |= MPSAFE; /* steel */ @@ -267,8 +265,7 @@ afs_vop_lookup(ap) } *ap->a_vpp = vp; - if ((cnp->cn_nameiop == RENAME && wantparent && (flags & ISLASTCN)) - || (cnp->cn_nameiop != LOOKUP && (flags & ISLASTCN))) + if (cnp->cn_nameiop != LOOKUP && (flags & ISLASTCN)) cnp->cn_flags |= SAVENAME; DROPNAME();