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

2012-08-20 Thread Peter Maydell
On 18 August 2012 22:56, 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 host dirent structure, thus breaking everything that relies > on valid d_type value, e.g. glob(

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

2012-08-19 Thread Blue Swirl
On Sat, Aug 18, 2012 at 9:56 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 host dirent structure, thus breaking everything that relies > on valid d_type value, e.

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

2012-08-18 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 host dirent structure, thus breaking everything that relies on valid d_type value, e.g. glob(3). Signed-off-by: Dmitry V. Levin --- linux-user/sysc