Gentoo Archives: gentoo-dev

From: Alexander Tsoy <alexander@××××.me>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability
Date: Tue, 15 Apr 2014 08:07:01
Message-Id: 20140415120644.4c204446@home.puleglot
In Reply to: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability by Naohiro Aota
1 В Tue, 15 Apr 2014 11:11:53 +0900
2 Naohiro Aota <naota@g.o> пишет:
3
4 > Diego Elio Pettenò <flameeyes@×××××××××.eu> writes:
5 >
6 > > I'm pretty sure we have an eclass function to get the name of the 0
7 > > group.
8 >
9 > I can't find one... but found qmail.eclass is using exactly same
10 > method.
11 >
12 > > export GROUP_ROOT="$(id -gn root)"
13
14 "id -gn root" prints initial group name of the user root. This is
15 exactly what you want in fcaps.eclass. In linux "id" accepts only
16 username as argument, it doesn't support uid.
17
18 --
19 Alexander Tsoy

Replies

Subject Author
Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability Alexander Tsoy <alexander@××××.me>