lighttpd2 on github for easier collaboration - main repo still on lighttpd.net
C Ragel Python HTML CMake C++ Other
Switch branches/tags
Nothing to show
Clone or download
Stefan Bühler
Stefan Bühler [core] use readdir instead of readdir_r
readdir_r is deprecated in glibc due to serious memory handling issues
in the API: one cannot pass the size of the allocated dirent.

glibc authors claims readdir is thread-safe in modern implementations,
and expect POSIX to require it in a future version.

No way to check whether readdir is thread-safe though :(

("thread-safe" in this context means different directory streams, which
is good enough.)

Also remove li_dirent_buf_size.

Change-Id: Ia5eae3327e97dc4b0751fb2604ea21c0ce09a5f9
Latest commit bc6b256 Jul 29, 2017