user.eclass: Use egetent in eget{user,group}name
authorMichał Górny <mgorny@gentoo.org>
Tue, 30 Jul 2019 14:45:38 +0000 (16:45 +0200)
committerMike Gilbert <floppym@gentoo.org>
Tue, 13 Aug 2019 03:00:28 +0000 (23:00 -0400)
commite51c5cfae41952f32a75c9e680785f4c1242f9b7
tree1e508518cbaaf955d8638abead1a221b77f1fb3b
parente78f784397d4a85130cd3e071ce8614b103f838e
user.eclass: Use egetent in eget{user,group}name

Use egetent+cut to obtain user/group names rather than id(1).
The latter has no real advantage (besides being shorter to type),
and does not work correctly for getting groups.

Closes: https://bugs.gentoo.org/691056
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/user.eclass