X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id AC5FDDC178B for ; Mon, 30 Nov 2015 07:13:34 +0000 (UTC) Received: from newmail.tetrasec.net (unknown [74.117.189.116]) by mail.alpinelinux.org (Postfix) with ESMTP id 87194DC00D7 for ; Mon, 30 Nov 2015 07:13:34 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by newmail.tetrasec.net (Postfix) with ESMTPSA id 5C9BB5A136F; Mon, 30 Nov 2015 07:02:53 +0000 (GMT) Date: Mon, 30 Nov 2015 08:13:31 +0100 From: Natanael Copa To: =?ISO-8859-1?B?U/ZyZW4=?= Tempel Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH 1/5] abuild: use id instead of whoami Message-ID: <20151130081331.34a219fd@ncopa-desktop.alpinelinux.org> In-Reply-To: <1448581847-30376-1-git-send-email-soeren+git@soeren-tempel.net> References: <1448581847-30376-1-git-send-email-soeren+git@soeren-tempel.net> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP On Fri, 27 Nov 2015 00:50:43 +0100 S=F6ren Tempel wrote: > Furthermore compare the UID instead of the username. > --- > abuild.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/abuild.in b/abuild.in > index 38d6efd..697a186 100644 > --- a/abuild.in > +++ b/abuild.in > @@ -2144,7 +2144,7 @@ done > shift $(( $OPTIND - 1 )) > =20 > # check so we are not root > -if [ "$(whoami)" =3D "root" ] && [ -z "$FAKEROOTKEY" ]; then > +if [ $(id -u) -eq 0 ] && [ -z "$FAKEROOTKEY" ]; then > [ -z "$forceroot" ] && die "Do not run abuild as root" > FAKEROOT=3D > fi Those patches comes in too late. We have already built world now for v3.3. I don't want modify abuild unless it fixes something that is clearly broken at this point as it may result in different reulst of the built package. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---