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 DC0A0DC06E8 for ; Thu, 26 Nov 2015 23:51:12 +0000 (UTC) Received: from lithium.8pit.net (lithium.8pit.net [81.4.121.103]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 3AE51DC00C0; Thu, 26 Nov 2015 23:51:11 +0000 (UTC) Received: from localhost (ip5f5ac93e.dynamic.kabel-deutschland.de [95.90.201.62]) by lithium.8pit.net (OpenSMTPD) with ESMTPSA id 090043f5 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 27 Nov 2015 00:51:09 +0100 (CET) From: =?UTF-8?q?S=C3=B6ren=20Tempel?= To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 1/5] abuild: use id instead of whoami Date: Fri, 27 Nov 2015 00:50:43 +0100 Message-Id: <1448581847-30376-1-git-send-email-soeren+git@soeren-tempel.net> X-Mailer: git-send-email 2.6.3 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Furthermore compare the UID instead of the username. --- abuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )) # check so we are not root -if [ "$(whoami)" = "root" ] && [ -z "$FAKEROOTKEY" ]; then +if [ $(id -u) -eq 0 ] && [ -z "$FAKEROOTKEY" ]; then [ -z "$forceroot" ] && die "Do not run abuild as root" FAKEROOT= fi -- 2.6.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---