← Commit list

df96a3cd0

Denys Vlasenko
Denys Vlasenko
2021-06-24
SUCCESS Duration: 154s

Subject

ls: code shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/ls.c+1 -1
@@ -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, bb_basename(fullname), 0);
+ cur = my_stat(fullname, entry->d_name, 0);
if (!cur) {
free(fullname);
continue;