Fixed ls formatting for 8 char user names.
-Erik
This commit is contained in:
parent
de7965ca7e
commit
ccc7488615
@ -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
|
||||||
|
@ -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
1
init.c
@ -1,3 +1,4 @@
|
|||||||
|
/* vi: set sw=4 ts=4: */
|
||||||
/*
|
/*
|
||||||
* Mini init implementation for busybox
|
* Mini init implementation for busybox
|
||||||
*
|
*
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* vi: set sw=4 ts=4: */
|
||||||
/*
|
/*
|
||||||
* Mini init implementation for busybox
|
* Mini init implementation for busybox
|
||||||
*
|
*
|
||||||
|
2
ls.c
2
ls.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user