From a614131af2511c7625a65bb4d8866548e837f47d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 22 May 2007 20:27:25 +0000 Subject: [PATCH] Fix namespace for S_ISUID and S_ISGID. svn path=/main/trunk/; revision=6580 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2