Use user_from_uid(3) and group_from_gid(3) to avoid extra passwd
authormillert <millert@openbsd.org>
Sun, 16 Sep 2018 02:42:19 +0000 (02:42 +0000)
committermillert <millert@openbsd.org>
Sun, 16 Sep 2018 02:42:19 +0000 (02:42 +0000)
commit02f16a9da83c50f1d8eba089a9d222e013c596fc
tree61bb174cfcfb90c0498408226ff9ed134c148830
parent9cf561553267af28d67ab94def477e8575771dc9
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@
usr.bin/stat/stat.c