kern/131099: commit references a PR
dfilter service
dfilter at FreeBSD.ORG
Fri Feb 13 04:00:15 PST 2009
The following reply was made to PR kern/131099; it has been noted by GNATS.
From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: kern/131099: commit references a PR
Date: Fri, 13 Feb 2009 11:55:34 +0000 (UTC)
Author: netchild
Date: Fri Feb 13 11:55:19 2009
New Revision: 188572
URL: http://svn.freebsd.org/changeset/base/188572
Log:
Fix an edge-case of the linux readdir: We need the size of a linux dirent
structure, not the size of a pointer to it.
PR: 131099
Submitted by: Andreas Kies <andikies at gmail.com>
MFC after: 2 weeks
Modified:
head/sys/compat/linux/linux_file.c
Modified: head/sys/compat/linux/linux_file.c
==============================================================================
--- head/sys/compat/linux/linux_file.c Fri Feb 13 11:36:32 2009 (r188571)
+++ head/sys/compat/linux/linux_file.c Fri Feb 13 11:55:19 2009 (r188572)
@@ -345,7 +345,7 @@ getdents_common(struct thread *td, struc
/* readdir(2) case. Always struct dirent. */
if (is64bit)
return (EINVAL);
- nbytes = sizeof(linux_dirent);
+ nbytes = sizeof(*linux_dirent);
justone = 1;
} else
justone = 0;
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
More information about the freebsd-emulation
mailing list