redjack/libcork — pull request #39 by johnzachary (2013-02-09 00:14:26+00:00)
Title: Directory walker doesn't handle errors correctly

The function `cork_walk_one_directory` does handle error conditions from `readdir()` properly because it assumes `errno` is set *only* when a function returns from a error. It turns out this is not the case; a function may set `errno` and yet return a normal (non-error) condition. This needs to be fixed.