Changeset 1872

Show
Ignore:
Timestamp:
06/15/2007 03:04:56 PM (1 year ago)
Author:
jan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/lighttpd-1.4.x/NEWS

    r1778 r1872  
    33NEWS 
    44==== 
     5 
     6- 1.4.16 -  
     7 
     8  * fixed typecast of NULL on execl() (#1235) 
     9  * fixed circumventing url.access-deny by trailing slash (#1230) 
     10  * fixed crash on duplicate headers with trailing WS (#1232) 
    511 
    612- 1.4.15 - 2007-04-13 
  • branches/lighttpd-1.4.x/src/mod_accesslog.c

    r1731 r1872  
    508508                                 */ 
    509509 
    510                                 execl("/bin/sh", "sh", "-c", s->access_logfile->ptr + 1, NULL); 
     510                                execl("/bin/sh", "sh", "-c", s->access_logfile->ptr + 1, (char *)NULL); 
    511511 
    512512                                log_error_write(srv, __FILE__, __LINE__, "sss", 
  • branches/lighttpd-1.4.x/src/mod_scgi.c

    r1501 r1872  
    804804 
    805805                        /* exec the cgi */ 
    806                         execle("/bin/sh", "sh", "-c", b->ptr, NULL, env.ptr); 
     806                        execle("/bin/sh", "sh", "-c", b->ptr, (char *)NULL, env.ptr); 
    807807 
    808808                        log_error_write(srv, __FILE__, __LINE__, "sbs", 
  • branches/lighttpd-1.4.x/src/mod_ssi.c

    r1371 r1872  
    703703                        close(STDIN_FILENO); 
    704704 
    705                         execl("/bin/sh", "sh", "-c", cmd, NULL); 
     705                        execl("/bin/sh", "sh", "-c", cmd, (char *)NULL); 
    706706 
    707707                        log_error_write(srv, __FILE__, __LINE__, "sss", "spawing exec failed:", strerror(errno), cmd); 
  • branches/lighttpd-1.4.x/src/proc_open.c

    r1371 r1872  
    256256                proc_close_parents(proc); 
    257257 
    258                 execl(shell, shell, "-c", command, NULL); 
     258                execl(shell, shell, "-c", command, (char *)NULL); 
    259259                _exit(127); 
    260260 
  • branches/lighttpd-1.4.x/src/spawn-fcgi.c

    r1371 r1872  
    170170 
    171171                        /* exec the cgi */ 
    172                         execl("/bin/sh", "sh", "-c", b, NULL); 
     172                        execl("/bin/sh", "sh", "-c", b, (char *)NULL); 
    173173 
    174174                        exit(errno);