aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-06-24 13:37:53 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-06-24 13:37:53 +0200
commitdf96a3cd08f326b193b5c0ee7829ea736ab52451 (patch)
tree90edcdf9e2222d01152c87abd604187d57e2f812 /coreutils
parent6d61eb13635ac1121762f55376989af3d6c6ebad (diff)
downloadbusybox-w32-df96a3cd08f326b193b5c0ee7829ea736ab52451.tar.gz
busybox-w32-df96a3cd08f326b193b5c0ee7829ea736ab52451.tar.bz2
busybox-w32-df96a3cd08f326b193b5c0ee7829ea736ab52451.zip
ls: code shrink
function old new delta scan_and_display_dirs_recur 576 574 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 9e8561606..aeb40548e 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)
942 } 942 }
943 } 943 }
944 fullname = concat_path_file(path, entry->d_name); 944 fullname = concat_path_file(path, entry->d_name);
945 cur = my_stat(fullname, bb_basename(fullname), 0); 945 cur = my_stat(fullname, entry->d_name, 0);
946 if (!cur) { 946 if (!cur) {
947 free(fullname); 947 free(fullname);
948 continue; 948 continue;