Gentoo Archives: gentoo-dev

From: "Diego Elio Pettenò" <flameeyes@×××××××××.eu>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability
Date: Sun, 13 Apr 2014 06:29:35
Message-Id: CAHcsgXTSMwZtSYnHBc_FBKLKVSNs-qkGaxm40EL7FbP0qkgF-Q@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability by hasufell
1 I'm pretty sure we have an eclass function to get the name of the 0 group.
2 On 12 Apr 2014 17:41, "hasufell" <hasufell@g.o> wrote:
3
4 > naota@g.o:
5 > > fcaps.eclass is using group name 'root' which is not available on BSD
6 > > system. Instead you can use "0", or $(id -g -n 0) if you'd prefer "group
7 > > name"
8 > >
9 > > Index: fcaps.eclass
10 > > ===================================================================
11 > > RCS file: /var/cvsroot/gentoo-x86/eclass/fcaps.eclass,v
12 > > retrieving revision 1.8
13 > > diff -u -r1.8 fcaps.eclass
14 > > --- fcaps.eclass 27 Jun 2013 01:18:57 -0000 1.8
15 > > +++ fcaps.eclass 13 Apr 2014 00:16:44 -0000
16 > > @@ -80,7 +80,7 @@
17 > >
18 > > # Process the user options first.
19 > > local owner='root'
20 > > - local group='root'
21 > > + local group=$(id -g -n 0)
22 > > local mode='4711'
23 > > local caps_mode='711'
24 > >
25 > >
26 >
27 > # id -g -n 0
28 > id: 0: no such user
29 >
30 >

Replies

Subject Author
Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability Naohiro Aota <naota@g.o>