1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 01_use_bin_sh.dpatch by Torsten Marek <shlomme@gmx.net>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Use /bin/sh to execute external programs instead of getting
6 ## DP: the shell from $SHELL (See ticket #388)
8 # http://trac.lighttpd.net/trac/ticket/388
11 diff -urNad lighttpd-1.4.8~/src/proc_open.c lighttpd-1.4.8/src/proc_open.c
12 --- lighttpd-1.4.8~/src/proc_open.c 2005-08-11 00:26:39.000000000 +0200
13 +++ lighttpd-1.4.8/src/proc_open.c 2005-11-26 12:12:02.000000000 +0100
16 int proc_open(proc_handler_t *proc, const char *command) {
19 + const char *shell = "/bin/sh";
21 - if (NULL == (shell = getenv(SHELLENV))) {
22 +/* if (NULL == (shell = getenv(SHELLENV))) {
23 fprintf(stderr, "env %s is required", SHELLENV);
28 if (proc_open_pipes(proc) != 0) {