bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: fix minor bug with --author


From: Jim Meyering
Subject: FYI: fix minor bug with --author
Date: Wed, 29 Jun 2005 12:39:16 +0200

Thanks to Arnold for spotting/reporting this bug.

2005-06-29  Jim Meyering  <address@hidden>

        * src/ls.c (gobble_file): Use stat.st_author, not stat.st_uid
        when computing the --author column width.  This bug might have
        resulted in misaligned columns when using the --author option
        on the Hurd.  Spotted by Arnold Robbins.

Index: src/ls.c
===================================================================
RCS file: /fetish/cu/src/ls.c,v
retrieving revision 1.389
diff -u -p -r1.389 ls.c
--- src/ls.c    10 Jun 2005 19:31:45 -0000      1.389
+++ src/ls.c    29 Jun 2005 09:21:11 -0000
@@ -2658,7 +2658,7 @@ gobble_file (char const *name, enum file
 
       if (print_author)
        {
-         int len = format_user_width (f->stat.st_uid);
+         int len = format_user_width (f->stat.st_author);
          if (author_width < len)
            author_width = len;
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]