diff options
author | Jana <engineerarun@gmail.com> | 2020-08-11 22:18:25 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 22:18:25 +0530 |
commit | dc488857e11beba9aa52b3e55effbf5b98ec869a (patch) | |
tree | 53d903ef985124bd02af7f5f9df25823888cae12 /src/nnn.c | |
parent | 90e0d5e3d6fa559d4074512517e438b660817c4b (diff) | |
parent | dd6976dfad44cd92b312443a09de1f26c8852b3c (diff) | |
download | nnn-dc488857e11beba9aa52b3e55effbf5b98ec869a.tar.gz |
Merge pull request #694 from ucs1/fix-readdir
Fix inability to enter directories on an XFS filesystem on top of an md device
Diffstat (limited to 'src/nnn.c')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4970,7 +4970,7 @@ static int dentfill(char *path, struct entry **ppdents) if (S_ISDIR(sb.st_mode)) dentp->flags |= DIR_OR_LINK_TO_DIR; #if !(defined(__sun) || defined(__HAIKU__)) /* no d_type */ - } else if (dp->d_type == DT_DIR || (dp->d_type == DT_LNK && S_ISDIR(sb.st_mode))) { + } else if (dp->d_type == DT_DIR || ((dp->d_type == DT_LNK || dp->d_type == DT_UNKNOWN) && S_ISDIR(sb.st_mode))) { dentp->flags |= DIR_OR_LINK_TO_DIR; #endif } |