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

2012-08-21 Thread Peter Maydell
On 20 August 2012 23:13, 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 v4] linux-user: fix emulation of getdents

2012-08-20 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