Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing for st.st_mode & S_IFLNK doesn't work on OSX, because IFLNK and IFREG share bits, so regular files have a nonzero result and appear to be links. It seems safer and more readable to use the mode test macros, e.g. S_ISLNK and S_ISDIR.
- Loading branch information