1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Fix typo in previous: group_from_gid(st->st_gid, 1), not st_uid.

This broke the chmod regression test, as noted and tracked down
by bluhm.

ok millert
This commit is contained in:
tb 2018-09-18 15:14:06 +00:00
parent 3f41b616a5
commit f102d685f1

View File

@ -1,4 +1,4 @@
/* $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 $ */
/*
@ -598,7 +598,7 @@ format1(const struct stat *st,
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;