Changeset 493
- Timestamp:
- 07/31/2005 12:55:07 PM (3 years ago)
- Files:
-
- 1 modified
-
branches/lighttpd-1.3.x/src/spawn-fcgi.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.3.x/src/spawn-fcgi.c
r400 r493 11 11 12 12 #include "config.h" 13 13 14 14 15 #ifdef HAVE_PWD_H … … 121 122 case 0: { 122 123 char cgi_childs[64]; 124 char *b; 123 125 124 126 int i = 0; … … 142 144 putenv(cgi_childs); 143 145 146 /* fork and replace shell */ 147 b = malloc(strlen("exec ") + strlen(appPath) + 1); 148 strcpy(b, "exec "); 149 strcat(b, appPath); 150 144 151 /* exec the cgi */ 145 execl("/bin/sh", "sh", "-c", appPath, NULL);152 execl("/bin/sh", "sh", "-c", b, NULL); 146 153 147 154 exit(errno); … … 211 218 void show_version () { 212 219 char *b = "spawn-fcgi" "-" PACKAGE_VERSION \ 213 " - spawns fastcgi processes\n" \ 214 "Build-Date: " __DATE__ " " __TIME__ "\n"; 220 " - spawns fastcgi processes\n" 215 221 ; 216 222 write(1, b, strlen(b));

