Skip to content

Commit

Permalink
Merge pull request #36 from luck3y/dt_unknown_directories_from_xfs
Browse files Browse the repository at this point in the history
handle DT_UNKNOWN dirents the same as DT_LNK, and do a stat() on them
  • Loading branch information
RomanHargrave committed Sep 4, 2016
2 parents 325e02d + 1e32e03 commit 8ddab66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace blt {
{
bool isDir;
{
if(next->d_type == DT_LNK)
if(next->d_type == DT_LNK || next->d_type == DT_UNKNOWN)
{
char current_path[PATH_MAX + 1];
snprintf(current_path, PATH_MAX, "%s/%s", path.c_str(), next->d_name);
Expand Down

0 comments on commit 8ddab66

Please sign in to comment.