(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.

The bug was introduced on 2003-12-03.
This commit is contained in:
Jim Meyering
2005-06-29 10:03:10 +00:00
parent df46e29284
commit 9b050191c5
+1 -1
View File
@@ -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;
}