]> granicus.if.org Git - strace/commit
Do not use struct dirent in readdir decoding
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Mar 2013 12:45:05 +0000 (12:45 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Mar 2013 21:20:13 +0000 (21:20 +0000)
commit68f80e6d1af85336cf6cf89f48f700030bd94d86
tree452b55ca808a6db8136919f9709635fe67045064
parent2c42f32518e43b1e5ccb00c19010a799be6858d4
Do not use struct dirent in readdir decoding

struct dirent from libc should not be used for umove'ing into because it
contains fixed size d_name.

* file.c (printdir): Rename to print_old_dirent.
[SH64]: Decode using struct kernel_dirent.
[!SH64]: Decode using an open-coded struct with 32-bit d_ino and d_off.
(sys_readdir): Update.
file.c