Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: fcaps.eclass
Date: Thu, 31 Jul 2014 10:21:12
Message-Id: 20140731102106.A5DA32004E@flycatcher.gentoo.org
1 vapier 14/07/31 10:21:05
2
3 Modified: fcaps.eclass
4 Log:
5 use 0 for the fallback group rather than "root" to avoid portability issues (e.g. BSDs that do not have a root group)
6
7 Revision Changes Path
8 1.10 eclass/fcaps.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/fcaps.eclass?rev=1.10&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/fcaps.eclass?rev=1.10&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/fcaps.eclass?r1=1.9&r2=1.10
13
14 Index: fcaps.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/fcaps.eclass,v
17 retrieving revision 1.9
18 retrieving revision 1.10
19 diff -u -r1.9 -r1.10
20 --- fcaps.eclass 11 Jul 2014 08:21:58 -0000 1.9
21 +++ fcaps.eclass 31 Jul 2014 10:21:05 -0000 1.10
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2014 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/fcaps.eclass,v 1.9 2014/07/11 08:21:58 ulm Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/fcaps.eclass,v 1.10 2014/07/31 10:21:05 vapier Exp $
27
28 # @ECLASS: fcaps.eclass
29 # @MAINTAINER:
30 @@ -73,14 +73,14 @@
31 #
32 # If the system is unable to set capabilities, it will use the specified user,
33 # group, and mode (presumably to make the binary set*id). The defaults there
34 -# are root:root and 4711. Otherwise, the ownership and permissions will be
35 +# are root:0 and 4711. Otherwise, the ownership and permissions will be
36 # unchanged.
37 fcaps() {
38 debug-print-function ${FUNCNAME} "$@"
39
40 # Process the user options first.
41 local owner='root'
42 - local group='root'
43 + local group='0'
44 local mode='4711'
45 local caps_mode='711'