projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9192744
)
For bug #182157, never chmod 0 symlinks before unlinking them.
author
Zac Medico
<zmedico@gentoo.org>
Fri, 15 Jun 2007 20:06:54 +0000
(20:06 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 15 Jun 2007 20:06:54 +0000
(20:06 -0000)
svn path=/main/trunk/; revision=6848
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 2d3f4428365ec492aa0cd0004ce5cd620f917073..182c129c4a4eea8e12c3465b63e32a0bb7cb922e 100644
(file)
--- 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: