diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/nwfs/nwfs_io.c | 1 | ||||
-rw-r--r-- | sys/nwfs/nwfs_io.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nwfs/nwfs_io.c b/sys/fs/nwfs/nwfs_io.c index 84f702d..67346d4 100644 --- a/sys/fs/nwfs/nwfs_io.c +++ b/sys/fs/nwfs/nwfs_io.c @@ -148,6 +148,7 @@ nwfs_readvdir(struct vnode *vp, struct uio *uio, struct ucred *cred) { if (!error) { VTONW(newvp)->n_ctime = VTONW(newvp)->n_vattr.va_ctime.tv_sec; cnp->cn_nameptr = dp.d_name; + cnp->cn_namelen = dp.d_namlen; ndp->ni_vp = newvp; cache_enter(ndp->ni_dvp, ndp->ni_vp, cnp); vput(newvp); diff --git a/sys/nwfs/nwfs_io.c b/sys/nwfs/nwfs_io.c index 84f702d..67346d4 100644 --- a/sys/nwfs/nwfs_io.c +++ b/sys/nwfs/nwfs_io.c @@ -148,6 +148,7 @@ nwfs_readvdir(struct vnode *vp, struct uio *uio, struct ucred *cred) { if (!error) { VTONW(newvp)->n_ctime = VTONW(newvp)->n_vattr.va_ctime.tv_sec; cnp->cn_nameptr = dp.d_name; + cnp->cn_namelen = dp.d_namlen; ndp->ni_vp = newvp; cache_enter(ndp->ni_dvp, ndp->ni_vp, cnp); vput(newvp); |