diff options
author | 2006-04-26 21:37:37 +0000 | |
---|---|---|
committer | 2006-04-26 21:37:37 +0000 | |
commit | 712458731d698a973ffcad20d1ac34f04f50f982 (patch) | |
tree | 9e67fa947f732ef9eb7cb6da088e08cfa12c1718 | |
parent | Fix a typo in register definitions: looks like somebody copied the (diff) | |
download | wireguard-openbsd-712458731d698a973ffcad20d1ac34f04f50f982.tar.xz wireguard-openbsd-712458731d698a973ffcad20d1ac34f04f50f982.zip |
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@.
-rw-r--r-- | sys/nfs/nfs_vnops.c | 3 |
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; } |