diff options
author | dfr <dfr@FreeBSD.org> | 1997-07-22 15:35:15 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1997-07-22 15:35:15 +0000 |
commit | 29f6f6602dbf07eb46c5d0dd699fa79c17421623 (patch) | |
tree | 354b9dfe81789918e04b34a8b7f6fb7b08161b9e /sys/nfs | |
parent | 480e1d62b722f0820da532287ee10bc54a201b31 (diff) | |
download | FreeBSD-src-29f6f6602dbf07eb46c5d0dd699fa79c17421623.zip FreeBSD-src-29f6f6602dbf07eb46c5d0dd699fa79c17421623.tar.gz |
Allow NULL cookie verifiers for non-NULL offsets. This is needed for
Digital Unix boxes since they appear to always send null verifiers.
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_serv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index e0770ac..0ca0a9a 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94 - * $Id: nfs_serv.c,v 1.44 1997/06/14 11:19:35 bde Exp $ + * $Id: nfs_serv.c,v 1.45 1997/07/16 09:06:28 dfr Exp $ */ /* @@ -2580,7 +2580,7 @@ nfsrv_readdir(nfsd, slp, procp, mrq) nqsrv_getl(vp, ND_READ); if (v3) { error = getret = VOP_GETATTR(vp, &at, cred, procp); - if (!error && toff && verf != at.va_filerev) + if (!error && toff && verf && verf != at.va_filerev) error = NFSERR_BAD_COOKIE; } if (!error) @@ -2842,7 +2842,7 @@ nfsrv_readdirplus(nfsd, slp, procp, mrq) return (0); } error = getret = VOP_GETATTR(vp, &at, cred, procp); - if (!error && toff && verf != at.va_filerev) + if (!error && toff && verf && verf != at.va_filerev) error = NFSERR_BAD_COOKIE; if (!error) { nqsrv_getl(vp, ND_READ); |