Fixed ls formatting for 8 char user names.

-Erik
This commit is contained in:
Erik Andersen 2000-01-27 02:40:21 +00:00
parent de7965ca7e
commit ccc7488615
5 changed files with 5 additions and 2 deletions

View File

@ -37,6 +37,7 @@
* Fixed mount and umount. Previously they could leak loop device * Fixed mount and umount. Previously they could leak loop device
allocations, causing the system to quickly run out. Fix for umount allocations, causing the system to quickly run out. Fix for umount
by Ben Collins <bcollins@debian.org>, and mount was fixed by me. by Ben Collins <bcollins@debian.org>, and mount was fixed by me.
* ls formatting on 8 char user names fixed by Randolph Chung <tausq@debian.org>.
-Erik Andersen -Erik Andersen

View File

@ -198,7 +198,7 @@ static void list_single(const char *name, struct stat *info, const char *fullnam
if (*scratch) { if (*scratch) {
fputs(scratch, stdout); fputs(scratch, stdout);
if ( strlen( scratch) <= 8 ) if ( strlen( scratch) <= 8 )
wr(" ", 8-strlen( scratch)); wr(" ", 9-strlen( scratch));
} }
else { else {
writenum((long) info->st_uid,(short)8); writenum((long) info->st_uid,(short)8);

1
init.c
View File

@ -1,3 +1,4 @@
/* vi: set sw=4 ts=4: */
/* /*
* Mini init implementation for busybox * Mini init implementation for busybox
* *

View File

@ -1,3 +1,4 @@
/* vi: set sw=4 ts=4: */
/* /*
* Mini init implementation for busybox * Mini init implementation for busybox
* *

2
ls.c
View File

@ -198,7 +198,7 @@ static void list_single(const char *name, struct stat *info, const char *fullnam
if (*scratch) { if (*scratch) {
fputs(scratch, stdout); fputs(scratch, stdout);
if ( strlen( scratch) <= 8 ) if ( strlen( scratch) <= 8 )
wr(" ", 8-strlen( scratch)); wr(" ", 9-strlen( scratch));
} }
else { else {
writenum((long) info->st_uid,(short)8); writenum((long) info->st_uid,(short)8);