]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd-use_bin_sh.patch
- $SHELL patch from debian
[packages/lighttpd.git] / lighttpd-use_bin_sh.patch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 01_use_bin_sh.dpatch by Torsten Marek <shlomme@gmx.net>
3 ##
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)
7 #
8 # http://trac.lighttpd.net/trac/ticket/388
9
10 @DPATCH@
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
14 @@ -223,12 +223,13 @@
15  /* {{{ proc_open */
16  int proc_open(proc_handler_t *proc, const char *command) {
17         pid_t child;
18 -       const char *shell;
19 +       const char *shell = "/bin/sh";
20  
21 -       if (NULL == (shell = getenv(SHELLENV))) {
22 +/*     if (NULL == (shell = getenv(SHELLENV))) {
23                 fprintf(stderr, "env %s is required", SHELLENV);
24                 return -1;
25         }
26 +*/
27  
28         if (proc_open_pipes(proc) != 0) {
29                 return -1;
This page took 0.033659 seconds and 4 git commands to generate.