From: Zac Medico Date: Fri, 15 Jun 2007 20:14:05 +0000 (-0000) Subject: For bug #182157, never chmod 0 symlinks before unlinking them. (trunk r6848) X-Git-Tag: v2.1.3~220 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ef8758c7665d406339238ccf56d10734b7d48aa7;p=portage.git For bug #182157, never chmod 0 symlinks before unlinking them. (trunk r6848) svn path=/main/branches/2.1.2/; revision=6849 --- diff --git a/pym/portage.py b/pym/portage.py index 54eb19a13..88bc3816c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -7164,7 +7164,7 @@ class dblink: 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: