When readdir_r returns NULL, end-of-dir, is not an error.