summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-08-22 15:29:47 +0000
committerZac Medico <zmedico@gentoo.org>2007-08-22 15:29:47 +0000
commitee06d38d3967e94b44468f0ef98f37b73ae6442e (patch)
tree0036c5968a04806190de594c7371719ff076ac72
parent486a3a1c707589e003a5e5d3cb6b6fcd578c245f (diff)
downloadportage-ee06d38d3967e94b44468f0ef98f37b73ae6442e.tar.gz
portage-ee06d38d3967e94b44468f0ef98f37b73ae6442e.tar.bz2
portage-ee06d38d3967e94b44468f0ef98f37b73ae6442e.zip
Bug #188703 - Don't adjust permissions in ${T} unless userpriv is enabled.
svn path=/main/trunk/; revision=7661
-rw-r--r--pym/portage/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 58cf5e4b1..283b49be9 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3240,7 +3240,8 @@ def spawnebuild(mydo,actionmap,mysettings,debug,alwaysdep=0,logfile=None):
phase_retval = spawn(actionmap[mydo]["cmd"] % mydo, mysettings, debug=debug, logfile=logfile, **kwargs)
mysettings["EBUILD_PHASE"] = ""
- if not kwargs["droppriv"] and secpass >= 2:
+ if "userpriv" in mysettings.features and \
+ not kwargs["droppriv"] and secpass >= 2:
""" Privileged phases may have left files that need to be made
writable to a less privileged user."""
apply_recursive_permissions(mysettings["T"],