Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 177303 Details for
Bug 253467
sys-apps/portage-2.2_rc17: emerge should sanitize environment before starting
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix $A leakage
env_blacklist.patch (text/plain), 1.22 KB, created by
Zac Medico
on 2009-01-04 02:56:10 UTC
(
hide
)
Description:
fix $A leakage
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2009-01-04 02:56:10 UTC
Size:
1.22 KB
patch
obsolete
>Index: pym/portage/__init__.py >=================================================================== >--- pym/portage/__init__.py (revision 12378) >+++ pym/portage/__init__.py (revision 12379) >@@ -914,6 +914,12 @@ > virtuals ...etc you look in here. > """ > >+ _env_blacklist = [ >+ "A", "AA", "CATEGORY", "EBUILD_PHASE", "EMERGE_FROM", >+ "PF", "PKGUSE", "PORTAGE_CONFIGROOT", "PORTAGE_IUSE", >+ "PORTAGE_USE", "ROOT" >+ ] >+ > _environ_whitelist = [] > > # Whitelisted variables are always allowed to enter the ebuild >@@ -1432,9 +1438,7 @@ > self.lookuplist.reverse() > > # Blacklist vars that could interfere with portage internals. >- for blacklisted in "CATEGORY", "EBUILD_PHASE", \ >- "EMERGE_FROM", "PKGUSE", "PORTAGE_CONFIGROOT", \ >- "PORTAGE_IUSE", "PORTAGE_USE", "ROOT": >+ for blacklisted in self._env_blacklist: > for cfg in self.lookuplist: > cfg.pop(blacklisted, None) > del blacklisted, cfg >@@ -1909,8 +1913,6 @@ > env_configdict = self.configdict["env"] > pkg_configdict = self.configdict["pkg"] > previous_iuse = pkg_configdict.get("IUSE") >- for k in ("A", "AA", "CATEGORY", "PKGUSE", "PF", "PORTAGE_USE"): >- env_configdict.pop(k, None) > pkg_configdict["CATEGORY"] = cat > pkg_configdict["PF"] = pf > if mydb:
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 253467
:
177303
|
195953
|
195997