projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
452176b
)
One more 'mode & 07777' in apply_permissions.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 14 Mar 2006 09:05:03 +0000
(09:05 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 14 Mar 2006 09:05:03 +0000
(09:05 -0000)
svn path=/main/trunk/; revision=2882
pym/portage_util.py
patch
|
blob
|
history
diff --git
a/pym/portage_util.py
b/pym/portage_util.py
index 3715da1d256b613a81f584bbfed5080ed093f913..69748869789d58a368700dcf171373db3e2a9d1a 100644
(file)
--- 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