← Commit list

a97a2f128

Denys Vlasenko
Denys Vlasenko
2024-02-25
SUCCESS Duration: 154s

Subject

ls: do not truncate username/groupname to 8 chars

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+2 -2
@@ -526,10 +526,10 @@ static NOINLINE unsigned display_single(const struct dnode *dn)
#if ENABLE_FEATURE_LS_USERNAME
else {
if (opt & OPT_g) {
- column += printf("%-8.8s ",
+ column += printf("%-8s ",
get_cached_groupname(dn->dn_gid));
} else {
- column += printf("%-8.8s %-8.8s ",
+ column += printf("%-8s %-8s ",
get_cached_username(dn->dn_uid),
get_cached_groupname(dn->dn_gid));
}