From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QQb6s-0008VE-0A for garchives@archives.gentoo.org; Sun, 29 May 2011 08:12:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 386E21C013; Sun, 29 May 2011 08:12:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 029E11C013 for ; Sun, 29 May 2011 08:12:21 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 647471B4014 for ; Sun, 29 May 2011 08:12:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8B4AC80505 for ; Sun, 29 May 2011 08:12:20 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <696ac3204469b03291b6e2c051d685ee6d24f5c2.grobian@gentoo> Subject: [gentoo-commits] proj/portage:prefix commit in: bin/ebuild-helpers/ X-VCS-Repository: proj/portage X-VCS-Files: bin/ebuild-helpers/fowners X-VCS-Directories: bin/ebuild-helpers/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 696ac3204469b03291b6e2c051d685ee6d24f5c2 Date: Sun, 29 May 2011 08:12:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: d7ceb617b0b1b1755f43626402c6441c commit: 696ac3204469b03291b6e2c051d685ee6d24f5c2 Author: Fabian Groffen gentoo org> AuthorDate: Sun May 29 08:10:22 2011 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sun May 29 08:10:22 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D696ac320 fowners: disable in Prefix Make fowners return success and emit a warning for Prefix users, like enewuser etc. do. --- bin/ebuild-helpers/fowners | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/bin/ebuild-helpers/fowners b/bin/ebuild-helpers/fowners index b949164..0c5295b 100755 --- a/bin/ebuild-helpers/fowners +++ b/bin/ebuild-helpers/fowners @@ -4,6 +4,11 @@ =20 source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh =20 +if hasq prefix ${USE} && [[ $EUID !=3D 0 ]] ; then + ewarn "fowners ignored in Prefix with non-privileged user" + exit 0 +fi + # we can't prefix all arguments because # chown takes random options slash=3D"/"