From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id AC763138A1F for ; Tue, 15 Apr 2014 08:07:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0BB8E0AA4; Tue, 15 Apr 2014 08:06:54 +0000 (UTC) Received: from secretive.ru (secretive.ru [78.47.99.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E23E5E0A8B for ; Tue, 15 Apr 2014 08:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tsoy.me; s=secretive; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:To:From:Date; bh=9hX3tjKo7XCBx89oSBQErXGexTICbUssZYow/5/vNRI=; b=WNRJt3QrCW0BMk/8jGuB0nzI6nkFzuXq+4wvkIp8KzXLdXpo3E6ULJlswuz4CbvW1jeiWVnAyoJrQBf3GDF1LJpoIrVLAI+TEc3otAPaPl2xcZ3WBA8cGw3Y3E+zICox4FGd0vTbmkw+KPX7UPa83lcmvOpE0l4j5BH5ma+mOKc=; Received: from 37-146-203-62.broadband.corbina.ru ([37.146.203.62] helo=home.puleglot) by secretive.ru with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.80.1) (envelope-from ) id 1WZyOI-0001PV-SL for gentoo-dev@lists.gentoo.org; Tue, 15 Apr 2014 12:06:51 +0400 Date: Tue, 15 Apr 2014 12:06:44 +0400 From: Alexander Tsoy To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability Message-ID: <20140415120644.4c204446@home.puleglot> In-Reply-To: <87y4z7cpee.fsf@elisp.net> References: <87fvlit738.fsf@elisp.net> <5349DD1A.2010901@gentoo.org> <87y4z7cpee.fsf@elisp.net> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: e7afc15c-51d3-4830-9925-07c08af31559 X-Archives-Hash: ca271c1d945a5ccc6d4dbed7d2c70b0c =D0=92 Tue, 15 Apr 2014 11:11:53 +0900 Naohiro Aota =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Diego Elio Petten=C3=B2 writes: >=20 > > I'm pretty sure we have an eclass function to get the name of the 0 > > group.=20 >=20 > I can't find one... but found qmail.eclass is using exactly same > method. >=20 > > export GROUP_ROOT=3D"$(id -gn root)" "id -gn root" prints initial group name of the user root. This is exactly what you want in fcaps.eclass. In linux "id" accepts only username as argument, it doesn't support uid. --=20 Alexander Tsoy