[git commit] ls: revert last change (short name must be allocated)
Denys Vlasenko
vda.linux at googlemail.com
Fri Jun 25 17:48:34 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=0231e344273aafd02097eb71851bc7a078da5400
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
coreutils/ls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the busybox-cvs
mailing list