From 968beb434af29417a8490ce66435d157cf869495 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 13 Sep 2017 18:44:27 +0530 Subject: [PATCH] Skip entries in case fstatat() fails, do not exit --- nnn.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nnn.c b/nnn.c index 0709f53e..3b0ac02a 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) {