2002-08-14 20:48:17

by Kendrick M. Smith

[permalink] [raw]
Subject: REPOST patch 24/38: SERVER: return err_nofilehandle if missing fh in fh_verify()


Return nfserr_nofilehandle (v4 only) in fh_verify() if the filehandle
has not been set.

--- old/fs/nfsd/nfsfh.c Sun Aug 11 22:53:39 2002
+++ new/fs/nfsd/nfsfh.c Sun Aug 11 22:54:13 2002
@@ -109,6 +109,8 @@ fh_verify(struct svc_rqst *rqstp, struct
error = nfserr_stale;
if (rqstp->rq_vers > 2)
error = nfserr_badhandle;
+ if (rqstp->rq_vers == 4 && fh->fh_size == 0)
+ return nfserr_nofilehandle;

if (fh->fh_version == 1) {
datap = fh->fh_auth;



-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs