On Sat, Sep 15, 2018 at 08:42:19PM -0600, Todd C. Miller wrote: > CVSROOT: /cvs > Module name: src > Changes by: mill...@cvs.openbsd.org 2018/09/15 20:42:19 > > Modified files: > usr.bin/stat : stat.c > > Log message: > Use user_from_uid(3) and group_from_gid(3) to avoid extra passwd > and group file lookups. This required a bit of reordering of the > file mode handling bits to deal with the const char *. OK tb@
This commit broke regress/bin/chmod. root@ot1:.../chmod# make chgrp_name chgrp nobody *** Error 1 in /usr/src/regress/bin/chmod (Makefile:252 'chgrp_name': @[ `id -u` != 0 ] || [ `/usr/bin/stat -f '%Sg' regress/file` == 'nobo...) Group name of file in stat(1) output is wrong. root@ot1:.../chmod# ls -la obj/regress/file ---------- 1 root nobody 0 Sep 18 15:05 obj/regress/file root@ot1:.../chmod# stat obj/regress/file 1033 571842 ---------- 1 root wheel 0 0 "Sep 18 15:05:17 2018" "Sep 18 15:05:17 2018" "Sep 18 15:05:17 2018" 16384 0 0 obj/regress/file bluhm