From f25d4954a786c9f564a5e30e5899c1adf2b6c655 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Wed, 6 May 2015 14:57:51 +0200 Subject: stat: fix group name Change-Id: I0ad65a40bf380d789c4396ebdc01be217901a2e3 --- toys/other/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other/stat.c') diff --git a/toys/other/stat.c b/toys/other/stat.c index a96c1def..d6db44dd 100644 --- a/toys/other/stat.c +++ b/toys/other/stat.c @@ -82,7 +82,7 @@ static void print_stat(char type) if (!stat->st_size && filetype == S_IFREG) t = "regular empty file"; xprintf("%s", t); } else if (type == 'g') xprintf("%lu", stat->st_gid); - else if (type == 'G') xprintf("%8s", TT.user_name->pw_name); + else if (type == 'G') xprintf("%8s", TT.group_name->gr_name); else if (type == 'h') xprintf("%lu", stat->st_nlink); else if (type == 'i') xprintf("%llu", stat->st_ino); else if (type == 'N') { -- cgit v1.2.3