Gentoo Archives: gentoo-dev

From: Cyprien Nicolas <gentoo@×××××.fr>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability
Date: Tue, 15 Apr 2014 07:48:46
Message-Id: 20140415074835.GA22740@kubera.inria.fr
In Reply to: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability by Naohiro Aota
1 Il y a 5 heures et 36 minutes, Naohiro Aota écrivit :
2 > Diego Elio Pettenò <flameeyes@×××××××××.eu> writes:
3 >
4 > > I'm pretty sure we have an eclass function to get the name of the 0
5 > > group.
6 >
7 > I can't find one... but found qmail.eclass is using exactly same method.
8 >
9 > > export GROUP_ROOT="$(id -gn root)"
10
11 user.eclass provides egetent
12
13 egetent group 0
14
15 should give you the same output as $ getent group 0 | cut -d: -f1
16
17 --
18 Cyprien Nicolas (Fulax)
19 Gentoo Lisp project contrib