aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index d7dd57d..51d1794 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2659,7 +2659,7 @@ static int dentfill(char *path, struct entry **dents)
num_files = 0;
dir_blocks = 0;
- if (fstatat(fd, ".", &sb_path, 0) == -1) {
+ if (fstatat(fd, path, &sb_path, 0) == -1) {
closedir(dirp);
printwarn(NULL);
return 0;