--- Comment #48 from Orion Poplawski <orion(a)cora.nwra.com> ---
Comment on attachment 1183912
Replace readdir_r with readdir
From man 3 readdir:
On success, readdir() returns a pointer to a dirent structure. (This structure
may be statically allocated; do not attempt to free(3) it.) If the end of
the directory stream is reached, NULL is returned and errno is not changed.
If an error occurs, NULL is returned and errno is set appropriately.
So I think you want to check errno for errors.
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component