summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: