From d02d2c89b71f2c8edc3197c1c38cad4e35053116 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 18 Jun 2007 10:26:48 +0000 Subject: [PATCH] During unmerge, always verify that the file isn't a symlink before doing chmod. (trunk r6867) svn path=/main/branches/2.1.2/; revision=6868 --- pym/portage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index 955901a52..bbbc6312b 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -7228,7 +7228,8 @@ class dblink: try: # Remove permissions to ensure that any hardlinks to # suid/sgid files are rendered harmless. - os.chmod(obj, 0) + if not islink: + os.chmod(obj, 0) os.unlink(obj) except (OSError,IOError),e: pass -- 2.26.2