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:
parent
a349d1bbfb
commit
f05e3aac6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51983
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user