projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f27a71
)
Fix namespace for S_ISUID and S_ISGID.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 22 May 2007 20:27:25 +0000
(20:27 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 22 May 2007 20:27:25 +0000
(20:27 -0000)
svn path=/main/trunk/; revision=6580
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 448df94df0b8d634f1edefecf1e4904469f5daf1..681334c754b23c292871439a8c34393eaef75840 100644
(file)
--- a/
pym/portage/dbapi/vartree.py
+++ b/
pym/portage/dbapi/vartree.py
@@
-1211,7
+1211,7
@@
class dblink(object):
writemsg_stdout("--- !md5 %s %s\n" % ("obj", obj))
continue
try:
- if statobj.st_mode &
S_ISUID or statobj.st_mode & S_ISGID
:
+ if statobj.st_mode &
(stat.S_ISUID | stat.S_ISGID)
:
# Always blind chmod 0 before unlinking to avoid race conditions.
os.chmod(obj, 0000)
if statobj.st_nlink > 1: