This broke the chmod regression test, as noted and tracked down
by bluhm.
ok millert
-/* $OpenBSD: stat.c,v 1.22 2018/09/16 02:42:19 millert Exp $ */
+/* $OpenBSD: stat.c,v 1.23 2018/09/18 15:14:06 tb Exp $ */
/* $NetBSD: stat.c,v 1.19 2004/06/20 22:20:16 jmc Exp $ */
/*
case SHOW_st_gid:
small = (sizeof(st->st_gid) == 4);
data = st->st_gid;
- sdata = group_from_gid(st->st_uid, 1);
+ sdata = group_from_gid(st->st_gid, 1);
if (sdata == NULL) {
snprintf(sid, sizeof(sid), "(%ld)", (long)st->st_gid);
sdata = sid;