[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for long names
From: |
Peter Åstrand |
Subject: |
Patch for long names |
Date: |
Thu, 14 Jun 2001 22:28:56 +0200 (CEST) |
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 <address@hidden>
- Patch for long names,
Peter Åstrand <=