From 66b29969d4e95fc895ec7e163fed31ed0f0a9a8e Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 26 Oct 2015 22:03:23 +0100 Subject: prefetch user/group name for correct column widths Stopgap fix for -l now, will be addressed properly later. --- lr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lr.c') diff --git a/lr.c b/lr.c index b65a7f1..99b6a22 100644 --- a/lr.c +++ b/lr.c @@ -1078,6 +1078,11 @@ callback(const char *fpath, const struct stat *sb, int depth, int entries, off_t maxlinks = fi->sb.st_nlink; if (fi->sb.st_size > maxsize) maxsize = fi->sb.st_size; + if (lflag) { + /* prefetch user/group name for correct column widths. */ + username(fi->sb.st_uid); + groupname(fi->sb.st_gid); + } return 0; } -- cgit 1.4.1