aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nnn.c b/nnn.c
index 0709f53..3b0ac02 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1814,9 +1814,8 @@ dentfill(char *path, struct entry **dents,
continue;
if (fstatat(fd, namep, &sb, AT_SYMLINK_NOFOLLOW) == -1) {
- if (*dents)
- free(*dents);
- errexit();
+ DPRINTF_S(namep);
+ continue;
}
if (n == total_dents) {