1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

Put back cn_namelen initialization. Removed by phk in rev 1.2.

This commit is contained in:
Boris Popov 1999-10-07 12:18:12 +00:00
parent a349d1bbfb
commit f05e3aac6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51983
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);