mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Fix a bug in NFSv3 READDIRPLUS reply processing
The client's READDIRPLUS logic skips the attributes and filehandle of the ".." entry. If the server doesn't send attributes but does send a filehandle for "..", the client's logic doesn't account for the extra "value follows" field that indicates whether the filehandle is present, causing the remaining entries in the reply to be ignored. Sponsored by: Network Appliance, Inc. Reviewed by: rick, mohans Approved by: silby MFC after: 2 weeks
This commit is contained in:
parent
34ef4672d2
commit
9f5349f23d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156416
@ -2312,7 +2312,11 @@ nfs_readdirplusrpc(struct vnode *vp, struct uio *uiop, struct ucred *cred)
|
||||
/* Just skip over the file handle */
|
||||
tl = nfsm_dissect(u_int32_t *, NFSX_UNSIGNED);
|
||||
i = fxdr_unsigned(int, *tl);
|
||||
nfsm_adv(nfsm_rndup(i));
|
||||
if (i) {
|
||||
tl = nfsm_dissect(u_int32_t *, NFSX_UNSIGNED);
|
||||
fhsize = fxdr_unsigned(int, *tl);
|
||||
nfsm_adv(nfsm_rndup(fhsize));
|
||||
}
|
||||
}
|
||||
if (newvp != NULLVP) {
|
||||
if (newvp == vp)
|
||||
|
Loading…
Reference in New Issue
Block a user