ls truncates user and group names to 8 characters. This is wrong, as far
as I understand, since the limit typically is 32 for usernames and 16 for
group names. The included patch fixes this problem. Can it be included in
future releases?
--- ls.c.org Sun Apr 29 11:42:47 2001
+++ ls.c Thu Jun 14 21:51:20 2001
@@ -2508,7 +2508,7 @@
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, "%-8u ", (unsigned int) f->stat.st_uid);
p += strlen (p);
@@ -2517,7 +2517,7 @@
{
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, "%-8u ", (unsigned int) f->stat.st_gid);
p += strlen (p);
--
/Peter Åstrand <[EMAIL PROTECTED]>
_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils