mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Skip entries in case fstatat() fails, do not exit
This commit is contained in:
parent
a75cf50de5
commit
968beb434a
5
nnn.c
5
nnn.c
|
@ -1814,9 +1814,8 @@ dentfill(char *path, struct entry **dents,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (fstatat(fd, namep, &sb, AT_SYMLINK_NOFOLLOW) == -1) {
|
if (fstatat(fd, namep, &sb, AT_SYMLINK_NOFOLLOW) == -1) {
|
||||||
if (*dents)
|
DPRINTF_S(namep);
|
||||||
free(*dents);
|
continue;
|
||||||
errexit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n == total_dents) {
|
if (n == total_dents) {
|
||||||
|
|
Loading…
Reference in a new issue