Make _dbus_directory_get_next_file use readdir, not readdir_r
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 17 Jan 2011 18:40:15 +0000 (18:40 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 25 Jan 2011 13:18:15 +0000 (13:18 +0000)
commit96a6d143765ae571e29155346cd7ae954e77d89e
tree370ee30f1b132045da1896e9b290546e4b724aee
parenta431ced6790c601bbc7a25160b33df3d5d0c852f
Make _dbus_directory_get_next_file use readdir, not readdir_r

This isn't thread-safe or reentrant, but it turns out we don't need
either of those properties, and readdir_r is a real pain to use correctly,
particularly in the presence of FUSE filesystems that might implement
statfs() wrong.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=8284
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=15922
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
dbus/dbus-sysdeps-util-unix.c