diff options
author | netchild <netchild@FreeBSD.org> | 2009-02-13 11:55:19 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2009-02-13 11:55:19 +0000 |
commit | 810bd8f9241273081ce06f55ea0aa3f91503a552 (patch) | |
tree | dcbc42ca4e069661dc82ac82f70ff14027a28f84 /sys/compat/linux | |
parent | 8faaf7bcde3cc3e6cf37c37c3652dd5196e47521 (diff) | |
download | FreeBSD-src-810bd8f9241273081ce06f55ea0aa3f91503a552.zip FreeBSD-src-810bd8f9241273081ce06f55ea0aa3f91503a552.tar.gz |
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@gmail.com>
MFC after: 2 weeks
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 6643e71..3f19b4c 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -345,7 +345,7 @@ getdents_common(struct thread *td, struct linux_getdents64_args *args, /* readdir(2) case. Always struct dirent. */ if (is64bit) return (EINVAL); - nbytes = sizeof(linux_dirent); + nbytes = sizeof(*linux_dirent); justone = 1; } else justone = 0; |