diff options
-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: |