summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-06-16 13:17:40 +0000
committerJim Meyering <jim@meyering.net>2001-06-16 13:17:40 +0000
commitdea75949e018dc516346d77c52197b6f42ff8007 (patch)
tree4ef9fbc1539ec6366ec29773e82e59e31302d2ae /src
parentf6a97a14830823ff2a2e5ba80d2e9079439db00e (diff)
downloadcoreutils-dea75949e018dc516346d77c52197b6f42ff8007.tar.xz
(print_long_format): Don't truncate user names
or group names that are longer than 8 characters.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index 5f7131c02..88fba6c78 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -2610,7 +2610,7 @@ print_long_format (const struct fileinfo *f)
{
char *user_name = (numeric_ids ? NULL : getuser (f->stat.st_uid));
if (user_name)
- sprintf (p, "%-8.8s ", user_name);
+ sprintf (p, "%-8s ", user_name);
else
sprintf (p, "%-8lu ", (unsigned long) f->stat.st_uid);
p += strlen (p);
@@ -2620,7 +2620,7 @@ print_long_format (const struct fileinfo *f)
{
char *group_name = (numeric_ids ? NULL : getgroup (f->stat.st_gid));
if (group_name)
- sprintf (p, "%-8.8s ", group_name);
+ sprintf (p, "%-8s ", group_name);
else
sprintf (p, "%-8lu ", (unsigned long) f->stat.st_gid);
p += strlen (p);