diff options
| author | 2017-09-13 18:44:27 +0530 | |
|---|---|---|
| committer | 2017-09-13 18:44:27 +0530 | |
| commit | 968beb434af29417a8490ce66435d157cf869495 (patch) | |
| tree | 8850bee1e945680352cdbd73fdbace4cb700bd6d | |
| parent | a75cf50de5992e76b9c4a05f8d63176625765fb5 (diff) | |
| download | nnn-968beb434af29417a8490ce66435d157cf869495.tar.gz | |
Skip entries in case fstatat() fails, do not exit
| -rw-r--r-- | nnn.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) { |