Browse Source
Skip entries in case fstatat() fails, do not exit
master
Arun Prakash Jana
7 years ago
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with
2 additions and
3 deletions
-
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) { |
|
|
|