summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Lewis <truckman@FreeBSD.org>2003-06-01 09:16:26 +0000
committerDon Lewis <truckman@FreeBSD.org>2003-06-01 09:16:26 +0000
commit64820e19bc8fe7b48b2e3559292a784ef58ce584 (patch)
treece0cd91a026b91c765768202629ffe8dc55e4574
parent878d4f3dda5cfa4bceb233fd4de057c3b8a46282 (diff)
Notes
-rw-r--r--sys/fs/pseudofs/pseudofs_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c
index 6787b0126caa..034a429ca50d 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);
/*