summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 0abaf3126..8df84d5b5 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2595,6 +2595,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
con = selinux.getcontext()
con = con.replace(mysettings["PORTAGE_T"], mysettings["PORTAGE_FETCH_T"])
selinux.setexec(con)
+ # bash is an allowed entrypoint, while most binaries are not
+ myfetch = ["bash", "-c", "exec \"$@\"", myfetch[0]] + myfetch
myret = portage_exec.spawn(myfetch,
env=mysettings.environ(), **spawn_keywords)