diff options
author | peter <peter@FreeBSD.org> | 1998-05-31 19:07:47 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-05-31 19:07:47 +0000 |
commit | 49e79dfe9e99f2111e1674ed6a3d7e4556deb050 (patch) | |
tree | 05f9c3104090dd6e948c518db694e79c7d7fe4cc /sys | |
parent | a21fad22e004e0ea740a93a97eae018ade9a71a6 (diff) | |
download | FreeBSD-src-49e79dfe9e99f2111e1674ed6a3d7e4556deb050.zip FreeBSD-src-49e79dfe9e99f2111e1674ed6a3d7e4556deb050.tar.gz |
NetBSD has a comment that Solaris 2.5 doesn't do verifiers correctly,
we have weakened this test already for Digital Unix, so it may be enough
for Solaris. It needs to be checked again.
Obtained from: NetBSD
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_serv.c | 8 | ||||
-rw-r--r-- | sys/nfsserver/nfs_serv.c | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index 4298c3c..e11899f 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95 - * $Id: nfs_serv.c,v 1.63 1998/05/31 17:27:47 peter Exp $ + * $Id: nfs_serv.c,v 1.64 1998/05/31 17:54:18 peter Exp $ */ /* @@ -2557,6 +2557,9 @@ nfsrv_readdir(nfsd, slp, procp, mrq) nqsrv_getl(vp, ND_READ); if (v3) { error = getret = VOP_GETATTR(vp, &at, cred, procp); + /* + * XXX This check may be too strict for Solaris 2.5 clients. + */ if (!error && toff && verf && verf != at.va_filerev) error = NFSERR_BAD_COOKIE; } @@ -2815,6 +2818,9 @@ nfsrv_readdirplus(nfsd, slp, procp, mrq) return (0); } error = getret = VOP_GETATTR(vp, &at, cred, procp); + /* + * XXX This check may be too strict for Solaris 2.5 clients. + */ if (!error && toff && verf && verf != at.va_filerev) error = NFSERR_BAD_COOKIE; if (!error) { diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index 4298c3c..e11899f 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95 - * $Id: nfs_serv.c,v 1.63 1998/05/31 17:27:47 peter Exp $ + * $Id: nfs_serv.c,v 1.64 1998/05/31 17:54:18 peter Exp $ */ /* @@ -2557,6 +2557,9 @@ nfsrv_readdir(nfsd, slp, procp, mrq) nqsrv_getl(vp, ND_READ); if (v3) { error = getret = VOP_GETATTR(vp, &at, cred, procp); + /* + * XXX This check may be too strict for Solaris 2.5 clients. + */ if (!error && toff && verf && verf != at.va_filerev) error = NFSERR_BAD_COOKIE; } @@ -2815,6 +2818,9 @@ nfsrv_readdirplus(nfsd, slp, procp, mrq) return (0); } error = getret = VOP_GETATTR(vp, &at, cred, procp); + /* + * XXX This check may be too strict for Solaris 2.5 clients. + */ if (!error && toff && verf && verf != at.va_filerev) error = NFSERR_BAD_COOKIE; if (!error) { |