Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 122192 Details for
Bug 182157
portage 2.1.3_rc1 sets permissions of /usr/lib64 to 0000 during --clean
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
protect symlinks to directories and don't chmod 0 symlinks before unlink
symlinks.patch (text/plain), 1.25 KB, created by
Zac Medico
on 2007-06-15 21:14:20 UTC
(
hide
)
Description:
protect symlinks to directories and don't chmod 0 symlinks before unlink
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-06-15 21:14:20 UTC
Size:
1.25 KB
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 6848) >+++ pym/portage.py (revision 6853) >@@ -7158,13 +7158,16 @@ > writemsg_stdout("--- cfgpro %s %s\n" % (pkgfiles[objkey][0], obj)) > continue > >+ # Don't unlink symlinks to directories here since that can >+ # remove /lib and /usr/lib symlinks. > if unmerge_orphans and \ > lstatobj and not stat.S_ISDIR(lstatobj.st_mode) and \ >+ not (islink and statobj and stat.S_ISDIR(statobj.st_mode)) and \ > not self.isprotected(obj): > 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: >@@ -7186,6 +7189,11 @@ > if not islink: > writemsg_stdout("--- !sym %s %s\n" % ("sym", obj)) > continue >+ # Don't unlink symlinks to directories here since that can >+ # remove /lib and /usr/lib symlinks. >+ if statobj and stat.S_ISDIR(statobj.st_mode): >+ writemsg_stdout("--- !sym %s %s\n" % ("sym", obj)) >+ continue > try: > os.unlink(obj) > writemsg_stdout("<<< %s %s\n" % ("sym",obj))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 182157
: 122192