patch 25/38: SERVER: return err_nofilehandle if missing fh in fh_verify()

From: Kendrick M. Smith (kmsmith@umich.edu)
Date: Tue Aug 13 2002 - 18:06:40 EST


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

--- old/fs/nfsd/nfsfh.c Tue Jul 30 22:20:35 2002
+++ new/fs/nfsd/nfsfh.c Mon Jul 29 12:39:43 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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:34 EST