summaryrefslogtreecommitdiffhomepage
path: root/coreutils/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index aeb40548e..9e8561606 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -942,7 +942,7 @@ static struct dnode **scan_one_dir(const char *path, unsigned *nfiles_p)
}
}
fullname = concat_path_file(path, entry->d_name);
- cur = my_stat(fullname, entry->d_name, 0);
+ cur = my_stat(fullname, bb_basename(fullname), 0);
if (!cur) {
free(fullname);
continue;