mirror of https://github.com/mirror/busybox.git
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
parent
5dc9ece3b9
commit
a97a2f1280
coreutils
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue