diff --git a/component/shellinabox/0002-Allow-to-run-entire-command-path.patch b/component/shellinabox/0002-Allow-to-run-entire-command-path.patch new file mode 100644 index 0000000000000000000000000000000000000000..f05cec31c9b0b4daf963e7f5b197f0dd01bbfd6b --- /dev/null +++ b/component/shellinabox/0002-Allow-to-run-entire-command-path.patch @@ -0,0 +1,26 @@ +From eee6f7180dc5dd4523264e7ce0721945ab2b78a1 Mon Sep 17 00:00:00 2001 +From: Antoine Catton <acatton@tiolive.com> +Date: Wed, 11 Jan 2012 17:32:15 +0100 +Subject: [PATCH 2/2] Allow to run entire command path. + +--- + shellinabox/launcher.c | 3 +-- + 1 files changed, 1 insertions(+), 2 deletions(-) + +diff --git a/shellinabox/launcher.c b/shellinabox/launcher.c +index fb8a133..e116a75 100644 +--- a/shellinabox/launcher.c ++++ b/shellinabox/launcher.c +@@ -1226,8 +1226,7 @@ static void execService(int width, int height, struct Service *service, + + extern char **environ; + environ = environment; +- char *cmd = strrchr(argv[0], '/'); +- execvp(cmd ? cmd + 1: argv[0], argv); ++ execvp(argv[0], argv); + } + + void setWindowSize(int pty, int width, int height) { +-- +1.7.6.5 + diff --git a/component/shellinabox/buildout.cfg b/component/shellinabox/buildout.cfg index 5d1cfd86541b3f910eeb22a613e7d705a2ac5561..55c2e6b1771065f06aedc771688dceffc1a0b729 100644 --- a/component/shellinabox/buildout.cfg +++ b/component/shellinabox/buildout.cfg @@ -6,6 +6,13 @@ extends = parts = shellinabox +[shellinabox-full-path-patch] +recipe = hexagonit.recipe.download +filename = 0002-Allow-to-run-entire-command-path.patch +url = ${:_profile_base_location_}/${:filename} +download-only = true + + [shellinabox-ipv6-patch] recipe = hexagonit.recipe.download filename = 0001-Switch-to-IPv6.patch @@ -24,3 +31,4 @@ patch-binary = ${patch:location}/bin/patch patch-options = -p1 patches = ${shellinabox-ipv6-patch:location}/${shellinabox-ipv6-patch:filename} + ${shellinabox-full-path-patch:location}/${shellinabox-full-path-patch:filename}