summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index f9a9e5d11..edb50fb3f 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -4263,9 +4263,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: