NULL arg terminator in execl()/execle() is missing
Some systems define NULL as a (void *) pointer, other systems just define it as 0.
On functions having a fixed number of arguments, this is not an issue. Thanks to the prototype, the NULL will be promoted to the right type to close the argument list.
But on functions with a variable number of arguments, if an integer object is used where a pointer is expected, bad things can happen. This is for instance the case on OpenBSD/amd64.
Here's a patch that fixes the execl()/execle() calls in Lighty 1.5 -SVN.
fixed type-cast for NULL in execl() (fixes #1235), fix provided by Frank
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1872 152afb58-edef-0310-8abb-c4023f1b3aa9
Also available in: Atom