X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=lighttpd-use_bin_sh.patch;h=de08dd3b03abee332f49fcefbfd338f58f577802;hb=e91e6bd06d400c32171311eb8e189e073b349ad4;hp=09849a45da31df8ade2cf12bf457f430a8f0ee9a;hpb=4dd52baafba9fa5268385cadd6125c58a56514be;p=packages%2Flighttpd.git diff --git a/lighttpd-use_bin_sh.patch b/lighttpd-use_bin_sh.patch index 09849a4..de08dd3 100644 --- a/lighttpd-use_bin_sh.patch +++ b/lighttpd-use_bin_sh.patch @@ -1,29 +1,20 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 01_use_bin_sh.dpatch by Torsten Marek -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Use /bin/sh to execute external programs instead of getting -## DP: the shell from $SHELL (See ticket #388) +## Use /bin/sh to execute external programs instead of getting +## the shell from $SHELL (See ticket #388) # # http://trac.lighttpd.net/trac/ticket/388 -@DPATCH@ -diff -urNad lighttpd-1.4.8~/src/proc_open.c lighttpd-1.4.8/src/proc_open.c ---- lighttpd-1.4.8~/src/proc_open.c 2005-08-11 00:26:39.000000000 +0200 -+++ lighttpd-1.4.8/src/proc_open.c 2005-11-26 12:12:02.000000000 +0100 -@@ -223,12 +223,13 @@ +--- lighttpd-1.4.12/src/proc_open.c~ 2006-09-19 15:49:41.846531074 +0300 ++++ lighttpd-1.4.12/src/proc_open.c 2006-09-19 15:51:13.658593480 +0300 +@@ -219,11 +219,7 @@ /* {{{ proc_open */ int proc_open(proc_handler_t *proc, const char *command) { pid_t child; - const char *shell; -+ const char *shell = "/bin/sh"; - +- - if (NULL == (shell = getenv(SHELLENV))) { -+/* if (NULL == (shell = getenv(SHELLENV))) { - fprintf(stderr, "env %s is required", SHELLENV); - return -1; - } -+*/ +- shell = "/bin/sh"; +- } ++ const char *shell = "/bin/sh"; if (proc_open_pipes(proc) != 0) { return -1;