summaryrefslogtreecommitdiff
path: root/nfs/ops.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-29 22:17:07 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-29 22:17:07 +0000
commitc43ee99d46966b7ba6e2b5a63ba3dc9d02a4e2af (patch)
treec3b53a8e8abd18aaaf221e16b8731fdb2b3d007c /nfs/ops.c
parentce2be747b563cf9404650dc1e61dc9987d6a0ecb (diff)
(netfs_report_access): Make sure netfs_attempt_read return a
reasonable LEN.
Diffstat (limited to 'nfs/ops.c')
-rw-r--r--nfs/ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nfs/ops.c b/nfs/ops.c
index ac5ceb98..417cc4af 100644
--- a/nfs/ops.c
+++ b/nfs/ops.c
@@ -969,6 +969,8 @@ netfs_report_access (struct netcred *cred,
*types = O_READ | O_EXEC;
+ assert (len == 1 || len == 0);
+
if (len == 1)
{
err = netfs_attempt_write (cred, np, 0, &len, &byte);