]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd-use_bin_sh.patch
de08dd3b03abee332f49fcefbfd338f58f577802
[packages/lighttpd.git] / lighttpd-use_bin_sh.patch
1 ## Use /bin/sh to execute external programs instead of getting
2 ## the shell from $SHELL (See ticket #388)
3 #
4 # http://trac.lighttpd.net/trac/ticket/388
5
6 --- lighttpd-1.4.12/src/proc_open.c~    2006-09-19 15:49:41.846531074 +0300
7 +++ lighttpd-1.4.12/src/proc_open.c     2006-09-19 15:51:13.658593480 +0300
8 @@ -219,11 +219,7 @@
9  /* {{{ proc_open */
10  int proc_open(proc_handler_t *proc, const char *command) {
11         pid_t child;
12 -       const char *shell;
13 -
14 -       if (NULL == (shell = getenv(SHELLENV))) {
15 -               shell = "/bin/sh";
16 -       }
17 +       const char *shell = "/bin/sh";
18  
19         if (proc_open_pipes(proc) != 0) {
20                 return -1;
This page took 0.039748 seconds and 2 git commands to generate.