Do not forget to adjust buflen for the first resolution of the path
from namecache. While there, compare pointers for equiality. Reviewed by: marcus Tested by: pho
This commit is contained in:
parent
065fc451f8
commit
9194007261
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190143
@ -956,7 +956,8 @@ vn_fullpath1(struct thread *td, struct vnode *vp, struct vnode *rdir,
|
||||
if (vp->v_type != VDIR) {
|
||||
ncp = TAILQ_FIRST(&vp->v_cache_dst);
|
||||
if (ncp != NULL) {
|
||||
for (i = ncp->nc_nlen - 1; i >= 0 && bp > buf; i--)
|
||||
buflen -= ncp->nc_nlen;
|
||||
for (i = ncp->nc_nlen - 1; i >= 0 && bp != buf; i--)
|
||||
*--bp = ncp->nc_name[i];
|
||||
if (bp == buf) {
|
||||
numfullpathfail4++;
|
||||
|
Loading…
Reference in New Issue
Block a user