summaryrefslogtreecommitdiffstats
path: root/sys/fs/nwfs
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>1999-10-07 12:18:12 +0000
committerbp <bp@FreeBSD.org>1999-10-07 12:18:12 +0000
commit92cdc096e64f4f2f9198db3941bce72a914b7350 (patch)
tree11cc6cc77c51eeac69048020af8700678bf5b5c8 /sys/fs/nwfs
parentfc3c2c1bd51a2058e0263ab2b20bb78980e3bfef (diff)
downloadFreeBSD-src-92cdc096e64f4f2f9198db3941bce72a914b7350.zip
FreeBSD-src-92cdc096e64f4f2f9198db3941bce72a914b7350.tar.gz
Put back cn_namelen initialization. Removed by phk in rev 1.2.
Diffstat (limited to 'sys/fs/nwfs')
-rw-r--r--sys/fs/nwfs/nwfs_io.c1
1 files changed, 1 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);
OpenPOWER on IntegriCloud