commit dd6976dfad44cd92b312443a09de1f26c8852b3c parent 90e0d5e3d6fa559d4074512517e438b660817c4b Author: ucs <git-51d@ug0.fr> Date: Mon, 10 Aug 2020 13:02:47 +0200 Fix some directories not opening Diffstat:
| M | src/nnn.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nnn.c b/src/nnn.c @@ -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 }