From: Fabian Groffen Date: Sun, 29 May 2011 08:10:22 +0000 (+0200) Subject: fowners: disable in Prefix X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=696ac3204469b03291b6e2c051d685ee6d24f5c2;p=portage.git fowners: disable in Prefix Make fowners return success and emit a warning for Prefix users, like enewuser etc. do. --- diff --git a/bin/ebuild-helpers/fowners b/bin/ebuild-helpers/fowners index b9491649f..0c5295b78 100755 --- a/bin/ebuild-helpers/fowners +++ b/bin/ebuild-helpers/fowners @@ -4,6 +4,11 @@ source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh +if hasq prefix ${USE} && [[ $EUID != 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="/"