Browse Source

fixed type-cast for NULL in execl() (fixes #1235), fix provided by Frank

DENIS


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1872 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.16
Jan Kneschke 15 years ago
parent
commit
768a0d0eab
  1. 6
      NEWS
  2. 2
      src/mod_accesslog.c
  3. 2
      src/mod_scgi.c
  4. 2
      src/mod_ssi.c
  5. 2
      src/proc_open.c
  6. 2
      src/spawn-fcgi.c

6
NEWS

@ -3,6 +3,12 @@
NEWS
====
- 1.4.16 -
* fixed typecast of NULL on execl() (#1235)
* fixed circumventing url.access-deny by trailing slash (#1230)
* fixed crash on duplicate headers with trailing WS (#1232)
- 1.4.15 - 2007-04-13
* fixed broken Set-Cookie headers

2
src/mod_accesslog.c

@ -507,7 +507,7 @@ SETDEFAULTS_FUNC(log_access_open) {
*
*/
execl("/bin/sh", "sh", "-c", s->access_logfile->ptr + 1, NULL);
execl("/bin/sh", "sh", "-c", s->access_logfile->ptr + 1, (char *)NULL);
log_error_write(srv, __FILE__, __LINE__, "sss",
"spawning log-process failed: ", strerror(errno),

2
src/mod_scgi.c

@ -803,7 +803,7 @@ static int scgi_spawn_connection(server *srv,
buffer_append_string_buffer(b, host->bin_path);
/* exec the cgi */
execle("/bin/sh", "sh", "-c", b->ptr, NULL, env.ptr);
execle("/bin/sh", "sh", "-c", b->ptr, (char *)NULL, env.ptr);
log_error_write(srv, __FILE__, __LINE__, "sbs",
"execl failed for:", host->bin_path, strerror(errno));

2
src/mod_ssi.c

@ -702,7 +702,7 @@ static int process_ssi_stmt(server *srv, connection *con, plugin_data *p,
/* close stdin */
close(STDIN_FILENO);
execl("/bin/sh", "sh", "-c", cmd, NULL);
execl("/bin/sh", "sh", "-c", cmd, (char *)NULL);
log_error_write(srv, __FILE__, __LINE__, "sss", "spawing exec failed:", strerror(errno), cmd);

2
src/proc_open.c

@ -255,7 +255,7 @@ int proc_open(proc_handler_t *proc, const char *command) {
*/
proc_close_parents(proc);
execl(shell, shell, "-c", command, NULL);
execl(shell, shell, "-c", command, (char *)NULL);
_exit(127);
} else if (child < 0) {

2
src/spawn-fcgi.c

@ -169,7 +169,7 @@ int fcgi_spawn_connection(char *appPath, char *addr, unsigned short port, const
strcat(b, appPath);
/* exec the cgi */
execl("/bin/sh", "sh", "-c", b, NULL);
execl("/bin/sh", "sh", "-c", b, (char *)NULL);
exit(errno);

Loading…
Cancel
Save