diff options
-rw-r--r-- | sys/fs/pseudofs/pseudofs_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c index 6787b01..034a429 100644 --- a/sys/fs/pseudofs/pseudofs_vnops.c +++ b/sys/fs/pseudofs/pseudofs_vnops.c @@ -411,7 +411,8 @@ pfs_lookup(struct vop_lookup_args *va) vn_lock(vn, LK_EXCLUSIVE|LK_RETRY, cnp->cn_thread); cnp->cn_flags &= ~PDIRUNLOCK; } - if (!lockparent || !(cnp->cn_flags & ISLASTCN)) + if (!((lockparent && (cnp->cn_flags & ISLASTCN)) || + (cnp->cn_flags & ISDOTDOT))) VOP_UNLOCK(vn, 0, cnp->cn_thread); /* |