ls: code shrink

function                                             old     new   delta
scan_and_display_dirs_recur                          576     574      -2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2021-06-24 13:37:53 +02:00
parent 6d61eb1363
commit df96a3cd08

View File

@ -942,7 +942,7 @@ static struct dnode **scan_one_dir(const char *path, unsigned *nfiles_p)
} }
} }
fullname = concat_path_file(path, entry->d_name); fullname = concat_path_file(path, entry->d_name);
cur = my_stat(fullname, bb_basename(fullname), 0); cur = my_stat(fullname, entry->d_name, 0);
if (!cur) { if (!cur) {
free(fullname); free(fullname);
continue; continue;