diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-22 20:27:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-22 20:27:25 +0000 |
commit | a614131af2511c7625a65bb4d8866548e837f47d (patch) | |
tree | 2dc586fd6ad909d1d7249acef299f1992ee92de5 | |
parent | 0f27a71d5d7cfdc61603d28cef6fdd6769069110 (diff) | |
download | portage-a614131af2511c7625a65bb4d8866548e837f47d.tar.gz portage-a614131af2511c7625a65bb4d8866548e837f47d.tar.bz2 portage-a614131af2511c7625a65bb4d8866548e837f47d.zip |
Fix namespace for S_ISUID and S_ISGID.
svn path=/main/trunk/; revision=6580
-rw-r--r-- | pym/portage/dbapi/vartree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 448df94df..681334c75 100644 --- 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: |