diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2024-02-25 01:06:30 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2024-02-25 01:06:30 +0100 |
commit | a97a2f12804668435e05cf98ae43e3a81e3da041 (patch) | |
tree | bd8b03be04e5c0018626a40e05df4f289bd72254 | |
parent | 5dc9ece3b9e87af0dcb01449821ac827391ac116 (diff) | |
download | busybox-w32-a97a2f12804668435e05cf98ae43e3a81e3da041.tar.gz busybox-w32-a97a2f12804668435e05cf98ae43e3a81e3da041.tar.bz2 busybox-w32-a97a2f12804668435e05cf98ae43e3a81e3da041.zip |
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>
-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 b69b80460..cc809b797 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -526,10 +526,10 @@ static NOINLINE unsigned display_single(const struct dnode *dn) | |||
526 | #if ENABLE_FEATURE_LS_USERNAME | 526 | #if ENABLE_FEATURE_LS_USERNAME |
527 | else { | 527 | else { |
528 | if (opt & OPT_g) { | 528 | if (opt & OPT_g) { |
529 | column += printf("%-8.8s ", | 529 | column += printf("%-8s ", |
530 | get_cached_groupname(dn->dn_gid)); | 530 | get_cached_groupname(dn->dn_gid)); |
531 | } else { | 531 | } else { |
532 | column += printf("%-8.8s %-8.8s ", | 532 | column += printf("%-8s %-8s ", |
533 | get_cached_username(dn->dn_uid), | 533 | get_cached_username(dn->dn_uid), |
534 | get_cached_groupname(dn->dn_gid)); | 534 | get_cached_groupname(dn->dn_gid)); |
535 | } | 535 | } |