From ef8758c7665d406339238ccf56d10734b7d48aa7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 15 Jun 2007 20:14:05 +0000 Subject: [PATCH] For bug #182157, never chmod 0 symlinks before unlinking them. (trunk r6848) svn path=/main/branches/2.1.2/; revision=6849 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2