]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd-use_bin_sh.patch
up to 1.4.50
[packages/lighttpd.git] / lighttpd-use_bin_sh.patch
CommitLineData
659671c9
ER
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
399d5c1c
ER
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;
659671c9 13-
399d5c1c
ER
14- if (NULL == (shell = getenv(SHELLENV))) {
15- shell = "/bin/sh";
659671c9 16- }
399d5c1c
ER
17+ const char *shell = "/bin/sh";
18
19 if (proc_open_pipes(proc) != 0) {
20 return -1;
This page took 0.077067 seconds and 4 git commands to generate.