Date: Thu, 2 Sep 2010 04:56:01 +0000 (UTC) From: Brian Somers <brian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r212137 - stable/8/sys/kern Message-ID: <201009020456.o824u1gG092517@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009020456.o824u1gG092517>