diff options
author | Jack Lloyd <[email protected]> | 2016-07-30 10:03:03 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-07-30 10:03:03 -0400 |
commit | bca8bef636823abfb4b81fea82df943d4f4499a5 (patch) | |
tree | 7cb5f7264d1eea7d08a6775b6f76743f8ceb662d /src/lib/utils | |
parent | 9ad9a8bec0c8ff43af754e9215d73737d30308ed (diff) |
Use stat instead of lstat in get_files_recursive.
Otherwise symlinked files are ignored.
GH #565
Diffstat (limited to 'src/lib/utils')
-rw-r--r-- | src/lib/utils/filesystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/filesystem.cpp b/src/lib/utils/filesystem.cpp index 8d51e64bd..c67668288 100644 --- a/src/lib/utils/filesystem.cpp +++ b/src/lib/utils/filesystem.cpp @@ -90,7 +90,7 @@ std::vector<std::string> impl_readdir(const std::string& dir_path) struct stat stat_buf; - if(::lstat(full_path.c_str(), &stat_buf) == -1) + if(::stat(full_path.c_str(), &stat_buf) == -1) continue; if(S_ISDIR(stat_buf.st_mode)) |