summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-04-26 21:37:38 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-04-26 21:37:38 +0000
commit3822e490767df6f6d16147268ba0f10c37a1e54c (patch)
tree30fb51eab6f036b6689dd1fa18bca664fa192cbb /sys
parentbcc8f96cad7e797adf7d2dfc6417ee4ed4244a69 (diff)
In nfs_readdir(), if the buffer provided by the user is not big enough
to hold all the entries a directory has, we can't signal EOF. Okay deraadt@ and miod@.
Diffstat (limited to 'sys')
-rw-r--r--sys/nfs/nfs_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 5088a040303..30f21cb12b6 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vnops.c,v 1.66 2006/04/20 14:43:32 pedro Exp $ */
+/* $OpenBSD: nfs_vnops.c,v 1.67 2006/04/26 21:37:37 pedro Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */
/*
@@ -2013,6 +2013,7 @@ nfs_readdir(v)
dp->d_reclen -= NFS_DIRENT_OVERHEAD;
if (uio->uio_resid < dp->d_reclen) {
+ eof = 0;
done = 1;
break;
}