Use user_from_uid(3), group_from_gid(3), uid_from_user(3) and
authormillert <millert@openbsd.org>
Sun, 16 Sep 2018 02:41:16 +0000 (02:41 +0000)
committermillert <millert@openbsd.org>
Sun, 16 Sep 2018 02:41:16 +0000 (02:41 +0000)
commit9cf561553267af28d67ab94def477e8575771dc9
treeaf44b365f5202d24c4ab456ed5879d5123ab0a8b
parentd6fbb2f1dca5fb2df732e8962239b8a7b681a891
Use user_from_uid(3), group_from_gid(3), uid_from_user(3) and
gid_from_group(3) to avoid repeatedly looking up the same user/group.
Also keep the passwd and group files open to avoid opening and
closing them all the time. OK tb@
usr.sbin/mtree/create.c
usr.sbin/mtree/mtree.c
usr.sbin/mtree/spec.c