From: Zac Medico Date: Tue, 22 May 2007 20:27:25 +0000 (-0000) Subject: Fix namespace for S_ISUID and S_ISGID. X-Git-Tag: v2.2_pre1~1392 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a614131af2511c7625a65bb4d8866548e837f47d;p=portage.git Fix namespace for S_ISUID and S_ISGID. svn path=/main/trunk/; revision=6580 --- 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: