diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-15 20:06:54 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-15 20:06:54 +0000 |
commit | b4a5cfa5a9eb03fecc9133970f0afd20899565cf (patch) | |
tree | 057c72148258c1c6b89218762955e416884fafe5 | |
parent | 919274470ec75c602748fd277d9625bf40847353 (diff) | |
download | portage-b4a5cfa5a9eb03fecc9133970f0afd20899565cf.tar.gz portage-b4a5cfa5a9eb03fecc9133970f0afd20899565cf.tar.bz2 portage-b4a5cfa5a9eb03fecc9133970f0afd20899565cf.zip |
For bug #182157, never chmod 0 symlinks before unlinking them.
svn path=/main/trunk/; revision=6848
-rw-r--r-- | pym/portage/dbapi/vartree.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |