[Toybox] [PATCH] ls: Fix blank between group and label

José Bollo jobol at nonadev.net
Wed May 20 07:59:12 PDT 2015


---
 toys/posix/ls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/posix/ls.c b/toys/posix/ls.c
index 6429ce6..a1a97e5 100644
--- a/toys/posix/ls.c
+++ b/toys/posix/ls.c
@@ -423,7 +423,7 @@ static void listfiles(int dirfd, struct dirtree
*indir)
       else {
         if (flags&FLAG_n) sprintf(grp = thyme, "%u",
(unsigned)st->st_gid);
         else strwidth(grp = getgroupname(st->st_gid));
-        grpad = toybuf+256-(totals[4]-len[4]);
+        grpad = toybuf+256-(totals[4]-len[4])-!!(flags & FLAG_Z);
       }
 
       if (flags&FLAG_g) usr = upad = toybuf+256;
-- 
2.1.2




 1432133952.0


More information about the Toybox mailing list