Fix namespace for S_ISUID and S_ISGID.
authorZac Medico <zmedico@gentoo.org>
Tue, 22 May 2007 20:27:25 +0000 (20:27 -0000)
committerZac 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

index 448df94df0b8d634f1edefecf1e4904469f5daf1..681334c754b23c292871439a8c34393eaef75840 100644 (file)
@@ -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: