Browse Source

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>
Denys Vlasenko 2 months ago
parent
commit
a97a2f1280
1 changed files with 2 additions and 2 deletions
  1. 2 2
      coreutils/ls.c

+ 2 - 2
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));
 			}