Commit 6fb1c0b489c49b761eeddd655dd01e61d402722d

Scott J. Goldman 2012-05-09T23:45:55

Fix readdir_r() usage for Solaris On Solaris, struct dirent is defined differently than Linux. The field containing the path name is of size 0, rather than NAME_MAX. So, we need to use a properly sized buffer on Solaris to avoid a stack overflow. Also fix some DIR* leaks on cleanup.