diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-08-22 15:30:52 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-08-22 15:30:52 +0000 |
commit | 53f8767741b3fb7e4ebbdff65fb9c1e939bf4717 (patch) | |
tree | 37e09a49cc48a26bf350b1c1c20fc850fbd55346 /pym/portage.py | |
parent | 7cf51294dafb01c07a38eb4514b9fa2e506bb85a (diff) | |
download | portage-53f8767741b3fb7e4ebbdff65fb9c1e939bf4717.tar.gz portage-53f8767741b3fb7e4ebbdff65fb9c1e939bf4717.tar.bz2 portage-53f8767741b3fb7e4ebbdff65fb9c1e939bf4717.zip |
Bug #188703 - Don't adjust permissions in ${T} unless userpriv is enabled. (trunk r7661)
svn path=/main/branches/2.1.2/; revision=7662
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index c571c2ce2..edb1de9a9 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3191,7 +3191,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"], |