summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjg <mjg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>2020-10-29 18:43:37 +0000
committermjg <mjg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>2020-10-29 18:43:37 +0000
commit6aceffe3a863cd95d888b3149c6ec73f85ed659a (patch)
tree63d3f043377b92b8de026698d86d99ddb97a3bc5
parent46fb6051247a252e085e10175eed67f9c8d3f1b4 (diff)
downloadfreebsd-6aceffe3a863cd95d888b3149c6ec73f85ed659a.tar.gz
freebsd-6aceffe3a863cd95d888b3149c6ec73f85ed659a.tar.bz2
vfs: add NAMEI_DBG_HADSTARTDIR handling lost in rewrite
Noted by: rpokala git-svn-id: http://svn.freebsd.org/base/head@367144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-rw-r--r--sys/kern/vfs_lookup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index 7a64ed8ea8e..c8216c88720 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -507,6 +507,8 @@ namei(struct nameidata *ndp)
KASSERT(ndp->ni_debugflags == NAMEI_DBG_INITED,
("%s: bad debugflags %d", __func__, ndp->ni_debugflags));
ndp->ni_debugflags |= NAMEI_DBG_CALLED;
+ if (ndp->ni_startdir != NULL)
+ ndp->ni_debugflags |= NAMEI_DBG_HADSTARTDIR;
/*
* For NDVALIDATE.
*