Ticket #1235: fix-sentinel.patch
| File fix-sentinel.patch, 2.0 kB (added by Frank DENIS, 1 year ago) |
|---|
-
src/mod_scgi.c
old new 790 790 buffer_append_string_buffer(b, host->bin_path); 791 791 792 792 /* exec the cgi */ 793 execle("/bin/sh", "sh", "-c", b->ptr, NULL, env.ptr);793 execle("/bin/sh", "sh", "-c", b->ptr, (char *) NULL, env.ptr); 794 794 795 795 log_error_write(srv, __FILE__, __LINE__, "sbs", 796 796 "execl failed for:", host->bin_path, strerror(errno)); -
src/mod_ssi.c
old new 707 707 /* close stdin */ 708 708 close(STDIN_FILENO); 709 709 710 execl("/bin/sh", "sh", "-c", cmd, NULL);710 execl("/bin/sh", "sh", "-c", cmd, (char *) NULL); 711 711 712 712 /* */ 713 713 SEGFAULT("spawing '%s' failed: %s", cmd, strerror(errno)); -
src/spawn-fcgi.c
old new 190 190 strcat(b, appPath); 191 191 192 192 /* exec the cgi */ 193 execl("/bin/sh", "sh", "-c", b, NULL);193 execl("/bin/sh", "sh", "-c", b, (char *) NULL); 194 194 195 195 exit(errno); 196 196 -
src/mod_accesslog.c
old new 493 493 * 494 494 */ 495 495 496 execl("/bin/sh", "sh", "-c", s->access_logfile->ptr + 1, NULL);496 execl("/bin/sh", "sh", "-c", s->access_logfile->ptr + 1, (char *) NULL); 497 497 498 498 log_error_write(srv, __FILE__, __LINE__, "sss", 499 499 "spawning log-process failed: ", strerror(errno), -
src/proc_open.c
old new 255 255 */ 256 256 proc_close_parents(proc); 257 257 258 execl(shell, shell, "-c", command, NULL);258 execl(shell, shell, "-c", command, (char *) NULL); 259 259 _exit(127); 260 260 261 261 } else if (child < 0) {

