From b4a5cfa5a9eb03fecc9133970f0afd20899565cf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 15 Jun 2007 20:06:54 +0000 Subject: For bug #182157, never chmod 0 symlinks before unlinking them. svn path=/main/trunk/; revision=6848 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 2d3f44283..182c129c4 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1199,7 +1199,7 @@ class dblink(object): try: # Remove permissions to ensure that any hardlinks to # suid/sgid files are rendered harmless. - if statobj: + if statobj and not islink: os.chmod(obj, 0) os.unlink(obj) except EnvironmentError, e: -- cgit v1.2.3-1-g7c22