Merge pull request #694 from ucs1/fix-readdir

Fix inability to enter directories on an XFS filesystem on top of an md device
This commit is contained in:
Jana 2020-08-11 22:18:25 +05:30 committed by GitHub
commit dc488857e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}