]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(gobble_file): Use stat.st_author, not stat.st_uid
authorJim Meyering <jim@meyering.net>
Wed, 29 Jun 2005 10:03:10 +0000 (10:03 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 29 Jun 2005 10:03:10 +0000 (10:03 +0000)
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.

The bug was introduced on 2003-12-03.

src/ls.c

index add66b1e41b3f8c14fa312bfd18da41d62d02b63..f44d2bdc2076854d6981299586d363812cd92878 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -2658,7 +2658,7 @@ gobble_file (char const *name, enum filetype type, bool command_line_arg,
 
       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;
        }