From 696ac3204469b03291b6e2c051d685ee6d24f5c2 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 29 May 2011 10:10:22 +0200 Subject: [PATCH] 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 file changed, 5 insertions(+) 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="/" -- 2.26.2