aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-01-27 02:40:21 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-01-27 02:40:21 +0000
commit1a0c0d1f16ed677c80d6a3183955d04f59c5862f (patch)
tree4f4f709ad3b66e3f94fabd3567eb85df9e935393
parent6a02f972399c27ce1d374c8538d09e4eb1cedd75 (diff)
downloadbusybox-w32-1a0c0d1f16ed677c80d6a3183955d04f59c5862f.tar.gz
busybox-w32-1a0c0d1f16ed677c80d6a3183955d04f59c5862f.tar.bz2
busybox-w32-1a0c0d1f16ed677c80d6a3183955d04f59c5862f.zip
Fixed ls formatting for 8 char user names.
-Erik git-svn-id: svn://busybox.net/trunk/busybox@343 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--Changelog1
-rw-r--r--coreutils/ls.c2
-rw-r--r--init.c1
-rw-r--r--init/init.c1
-rw-r--r--ls.c2
5 files changed, 5 insertions, 2 deletions
diff --git a/Changelog b/Changelog
index 46b2a1f09..8dc40ca83 100644
--- a/Changelog
+++ b/Changelog
@@ -37,6 +37,7 @@
37 * Fixed mount and umount. Previously they could leak loop device 37 * Fixed mount and umount. Previously they could leak loop device
38 allocations, causing the system to quickly run out. Fix for umount 38 allocations, causing the system to quickly run out. Fix for umount
39 by Ben Collins <bcollins@debian.org>, and mount was fixed by me. 39 by Ben Collins <bcollins@debian.org>, and mount was fixed by me.
40 * ls formatting on 8 char user names fixed by Randolph Chung <tausq@debian.org>.
40 41
41 42
42 -Erik Andersen 43 -Erik Andersen
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 862da4368..78193e7c1 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -198,7 +198,7 @@ static void list_single(const char *name, struct stat *info, const char *fullnam
198 if (*scratch) { 198 if (*scratch) {
199 fputs(scratch, stdout); 199 fputs(scratch, stdout);
200 if ( strlen( scratch) <= 8 ) 200 if ( strlen( scratch) <= 8 )
201 wr(" ", 8-strlen( scratch)); 201 wr(" ", 9-strlen( scratch));
202 } 202 }
203 else { 203 else {
204 writenum((long) info->st_uid,(short)8); 204 writenum((long) info->st_uid,(short)8);
diff --git a/init.c b/init.c
index 09540ff01..dd92854b4 100644
--- a/init.c
+++ b/init.c
@@ -1,3 +1,4 @@
1/* vi: set sw=4 ts=4: */
1/* 2/*
2 * Mini init implementation for busybox 3 * Mini init implementation for busybox
3 * 4 *
diff --git a/init/init.c b/init/init.c
index 09540ff01..dd92854b4 100644
--- a/init/init.c
+++ b/init/init.c
@@ -1,3 +1,4 @@
1/* vi: set sw=4 ts=4: */
1/* 2/*
2 * Mini init implementation for busybox 3 * Mini init implementation for busybox
3 * 4 *
diff --git a/ls.c b/ls.c
index 862da4368..78193e7c1 100644
--- a/ls.c
+++ b/ls.c
@@ -198,7 +198,7 @@ static void list_single(const char *name, struct stat *info, const char *fullnam
198 if (*scratch) { 198 if (*scratch) {
199 fputs(scratch, stdout); 199 fputs(scratch, stdout);
200 if ( strlen( scratch) <= 8 ) 200 if ( strlen( scratch) <= 8 )
201 wr(" ", 8-strlen( scratch)); 201 wr(" ", 9-strlen( scratch));
202 } 202 }
203 else { 203 else {
204 writenum((long) info->st_uid,(short)8); 204 writenum((long) info->st_uid,(short)8);