summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-18 01:44:15 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-18 01:44:15 +0000
commitd0c5daf2ad6e830fd44a6548c10f64d4022f80da (patch)
tree5816be0ea9c94f929b40c82b98c92b18b0894a7a /pym/portage.py
parent8dbaadf6621aa872e7ea35c136271f0c16da41df (diff)
downloadportage-d0c5daf2ad6e830fd44a6548c10f64d4022f80da.tar.gz
portage-d0c5daf2ad6e830fd44a6548c10f64d4022f80da.tar.bz2
portage-d0c5daf2ad6e830fd44a6548c10f64d4022f80da.zip
Make the ccache userpriv permission check from bug #162542 less sensitive
by skipping permission checks on files and just checking the directories. (trunk r9922) svn path=/main/branches/2.1.2/; revision=9923
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 2ded6dce1..44f7e212a 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4265,9 +4265,7 @@ def prepare_build_dirs(myroot, mysettings, cleanup):
continue
if subdir_st.st_gid != portage_gid or \
((stat.S_ISDIR(subdir_st.st_mode) and \
- not dirmode == (stat.S_IMODE(subdir_st.st_mode) & dirmode)) or \
- (not stat.S_ISDIR(subdir_st.st_mode) and \
- not filemode == (stat.S_IMODE(subdir_st.st_mode) & filemode))):
+ not dirmode == (stat.S_IMODE(subdir_st.st_mode) & dirmode))):
droppriv_fix = True
break
if droppriv_fix: