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)
9
diff -urNad lighttpd-1.4.8~/src/proc_open.c lighttpd-1.4.8/src/proc_open.c
10
--- lighttpd-1.4.8~/src/proc_open.c 2005-08-11 00:26:39.000000000 +0200
11
+++ lighttpd-1.4.8/src/proc_open.c 2005-11-26 12:12:02.000000000 +0100
14
int proc_open(proc_handler_t *proc, const char *command) {
17
+ const char *shell = "/bin/sh";
19
- if (NULL == (shell = getenv(SHELLENV))) {
20
+/* if (NULL == (shell = getenv(SHELLENV))) {
21
fprintf(stderr, "env %s is required", SHELLENV);
26
if (proc_open_pipes(proc) != 0) {