svn commit: r212137 - stable/8/sys/kern
Brian Somers
brian at FreeBSD.org
Thu Sep 2 04:56:01 UTC 2010
Author: brian
Date: Thu Sep 2 04:56:01 2010
New Revision: 212137
URL: http://svn.freebsd.org/changeset/base/212137
Log:
MFC r211684 & r211818; return ENOENT if we fall off the end of the directory.
Modified:
stable/8/sys/kern/vfs_default.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/kern/vfs_default.c
==============================================================================
--- stable/8/sys/kern/vfs_default.c Thu Sep 2 04:39:45 2010 (r212136)
+++ stable/8/sys/kern/vfs_default.c Thu Sep 2 04:56:01 2010 (r212137)
@@ -284,6 +284,9 @@ get_next_dirent(struct vnode *vp, struct
*cpos = dirbuf;
*len = (dirbuflen - uio.uio_resid);
+
+ if (*len == 0)
+ return (ENOENT);
}
dp = (struct dirent *)(*cpos);
More information about the svn-src-stable
mailing list