summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-14 09:05:03 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-14 09:05:03 +0000
commit220c6466451785913c61293ca255fa9c61c77eb1 (patch)
treeba52267f239554c1555ded8d9186e1d7e851d6e3 /pym
parent452176bcc10a967f8c8a29a92f5c433b429f4370 (diff)
downloadportage-220c6466451785913c61293ca255fa9c61c77eb1.tar.gz
portage-220c6466451785913c61293ca255fa9c61c77eb1.tar.bz2
portage-220c6466451785913c61293ca255fa9c61c77eb1.zip
One more 'mode & 07777' in apply_permissions.
svn path=/main/trunk/; revision=2882
Diffstat (limited to 'pym')
-rw-r--r--pym/portage_util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage_util.py b/pym/portage_util.py
index 3715da1d2..697488697 100644
--- a/pym/portage_util.py
+++ b/pym/portage_util.py
@@ -475,6 +475,8 @@ def apply_permissions(filename, uid=-1, gid=-1, mode=-1, mask=-1,
if mask >= 0:
if mode == -1:
mode = 0 # Don't add any mode bits when mode is unspecified.
+ else:
+ mode = mode & 07777
if (mode & st_mode != mode) or \
(mask ^ st_mode != st_mode):
new_mode = mode | st_mode