summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2004-04-25 19:40:52 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2004-04-25 19:40:52 +0000
commit439278dc9a6560f04fba49f240e38bdc619a142a (patch)
tree3d87e37867e0243d1b4b277229c13eec2d3ce61a
parent4a29fbd9c2c48a429ab67eb6e872cca1d2bef175 (diff)
if you don't want the parent, don't use WANTPARENT. from pedro martelletto
-rw-r--r--sys/miscfs/union/union_vfsops.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/miscfs/union/union_vfsops.c b/sys/miscfs/union/union_vfsops.c
index 4dd3345058c..7c84a47c84f 100644
--- a/sys/miscfs/union/union_vfsops.c
+++ b/sys/miscfs/union/union_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: union_vfsops.c,v 1.16 2003/08/14 07:46:40 mickey Exp $ */
+/* $OpenBSD: union_vfsops.c,v 1.17 2004/04/25 19:40:51 tedu Exp $ */
/* $NetBSD: union_vfsops.c,v 1.10 1995/06/18 14:47:47 cgd Exp $ */
/*
@@ -113,15 +113,12 @@ union_mount(mp, path, data, ndp, p)
/*
* Find upper node.
*/
- NDINIT(ndp, LOOKUP, FOLLOW|WANTPARENT,
- UIO_USERSPACE, args.target, p);
+ NDINIT(ndp, LOOKUP, FOLLOW, UIO_USERSPACE, args.target, p);
if ((error = namei(ndp)) != 0)
goto bad;
upperrootvp = ndp->ni_vp;
- vrele(ndp->ni_dvp);
- ndp->ni_dvp = NULL;
if (upperrootvp->v_type != VDIR) {
error = EINVAL;