projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6a97a1
)
(print_long_format): Don't truncate user names
author
Jim Meyering
<jim@meyering.net>
Sat, 16 Jun 2001 13:17:40 +0000
(13:17 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 16 Jun 2001 13:17:40 +0000
(13:17 +0000)
or group names that are longer than 8 characters.
src/ls.c
patch
|
blob
|
history
diff --git
a/src/ls.c
b/src/ls.c
index 5f7131c02c44881444502cc62f7efc48f28c74a1..88fba6c78fd8f561111d81a20576db44229b2c9b 100644
(file)
--- 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
.8
s ", 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
.8
s ", group_name);
+ sprintf (p, "%-8s ", group_name);
else
sprintf (p, "%-8lu ", (unsigned long) f->stat.st_gid);
p += strlen (p);