diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-15 20:14:05 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-15 20:14:05 +0000 |
commit | ef8758c7665d406339238ccf56d10734b7d48aa7 (patch) | |
tree | cefdd71025ad2d9431e374000080576fb4acd944 /pym | |
parent | 9df37386d4a301a0e9269659cb76154e8aa40c26 (diff) | |
download | portage-ef8758c7665d406339238ccf56d10734b7d48aa7.tar.gz portage-ef8758c7665d406339238ccf56d10734b7d48aa7.tar.bz2 portage-ef8758c7665d406339238ccf56d10734b7d48aa7.zip |
For bug #182157, never chmod 0 symlinks before unlinking them. (trunk r6848)
svn path=/main/branches/2.1.2/; revision=6849
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |