diff options
author | Denys Vlasenko | 2024-02-25 01:06:30 +0100 |
---|---|---|
committer | Denys Vlasenko | 2024-02-25 01:06:30 +0100 |
commit | a97a2f12804668435e05cf98ae43e3a81e3da041 (patch) | |
tree | bd8b03be04e5c0018626a40e05df4f289bd72254 /coreutils | |
parent | 5dc9ece3b9e87af0dcb01449821ac827391ac116 (diff) | |
download | busybox-a97a2f12804668435e05cf98ae43e3a81e3da041.zip busybox-a97a2f12804668435e05cf98ae43e3a81e3da041.tar.gz |
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>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/ls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index b69b804..cc809b7 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -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)); } |