aboutsummaryrefslogtreecommitdiff
path: root/sys/nwfs/nwfs_io.c
diff options
context:
space:
mode:
authorBoris Popov <bp@FreeBSD.org>1999-10-07 12:18:12 +0000
committerBoris Popov <bp@FreeBSD.org>1999-10-07 12:18:12 +0000
commitf05e3aac6ff70aa5164c943b3ed63d9408e4532d (patch)
treefa6de3befff360c326a2f0ea48aaef47102f5f4e /sys/nwfs/nwfs_io.c
parenta349d1bbfbefce1018cea1ab59263d7e0db9e962 (diff)
downloadsrc-f05e3aac6ff70aa5164c943b3ed63d9408e4532d.tar.gz
src-f05e3aac6ff70aa5164c943b3ed63d9408e4532d.zip
Put back cn_namelen initialization. Removed by phk in rev 1.2.
Notes
Notes: svn path=/head/; revision=51983
Diffstat (limited to 'sys/nwfs/nwfs_io.c')
-rw-r--r--sys/nwfs/nwfs_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nwfs/nwfs_io.c b/sys/nwfs/nwfs_io.c
index 84f702da2ce2..67346d4de5d6 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);