lkml.org 
[lkml]   [2002]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectREPOST 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;
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.033 / U:3.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site