Re: [Qemu-devel] [PATCH] linux-user: fix emulation of getdents

2012-08-18 Thread Blue Swirl
On Thu, Aug 16, 2012 at 9:20 PM, Dmitry V. Levin wrote: > In case when TARGET_ABI_BITS == 32 && HOST_LONG_BITS == 64, the last > byte of the target dirent structure (aka d_type byte) was never copied > from the native dirent structure, thus breaking everything that relies > on valid d_type value,

Re: [Qemu-devel] [PATCH] linux-user: fix emulation of getdents

2012-08-17 Thread Wei-Ren Chen
CC'ed to linux-user maintainer, Riku. On Fri, Aug 17, 2012 at 01:20:19AM +0400, Dmitry V. Levin wrote: > In case when TARGET_ABI_BITS == 32 && HOST_LONG_BITS == 64, the last > byte of the target dirent structure (aka d_type byte) was never copied > from the native dirent structure, thus breaking

[Qemu-devel] [PATCH] linux-user: fix emulation of getdents

2012-08-16 Thread Dmitry V. Levin
In case when TARGET_ABI_BITS == 32 && HOST_LONG_BITS == 64, the last byte of the target dirent structure (aka d_type byte) was never copied from the native dirent structure, thus breaking everything that relies on valid d_type value, e.g. glob(3). Signed-off-by: Dmitry V. Levin --- linux-user/sy