public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:prefix commit in: bin/ebuild-helpers/
Date: Sun, 29 May 2011 08:12:20 +0000 (UTC)	[thread overview]
Message-ID: <696ac3204469b03291b6e2c051d685ee6d24f5c2.grobian@gentoo> (raw)

commit:     696ac3204469b03291b6e2c051d685ee6d24f5c2
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun May 29 08:10:22 2011 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun May 29 08:10:22 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=696ac320

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 @@
 
 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="/"



             reply	other threads:[~2011-05-29  8:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-29  8:12 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-05-29  9:03 [gentoo-commits] proj/portage:prefix commit in: bin/ebuild-helpers/ Fabian Groffen
2011-08-30 18:52 Fabian Groffen
2011-12-02 17:58 Fabian Groffen
2011-12-04  9:23 Fabian Groffen
2011-12-04  9:23 Fabian Groffen
2011-12-19 18:11 Fabian Groffen
2011-12-23  9:51 Fabian Groffen
2012-12-26 14:48 Fabian Groffen
2013-06-11 20:14 Fabian Groffen
2013-08-12 19:31 Fabian Groffen
2022-07-24 19:40 Fabian Groffen
2022-07-25 15:04 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=696ac3204469b03291b6e2c051d685ee6d24f5c2.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox