ls: do not truncate username/groupname to 8 chars

function                                             old     new   delta
.rodata                                           105412  105408      -4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
master
Denys Vlasenko 2024-02-25 01:06:30 +01:00
parent 5dc9ece3b9
commit a97a2f1280
1 changed files with 2 additions and 2 deletions
coreutils

View File

@ -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));
}