occasionally caused exec to fail.
The argument array passed to apr_proc_create() needs to have
a NULL entry at the end.
PR: 15491
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98258
13f79535-47bb-0310-9956-
ffa450edef68
[Remove entries to the current 2.0 section below, when backported]
+ *) mod_ext_filter: Fix a problem building argument lists which
+ occasionally caused exec to fail. PR 15491. [Jeff Trawick]
+
*) Add mod_dav_lock - a generic subset of the DAV locking implementation.
[Justin Erenkrantz]
else
{
/* simple path */
- /* Allocate space for one argv pointer and parse the args. */
- filter->args = (char **)apr_palloc(p, sizeof(char *));
+ /* Allocate space for two argv pointers and parse the args. */
+ filter->args = (char **)apr_palloc(p, 2 * sizeof(char *));
filter->args[0] = ap_getword_white(p, args);
+ filter->args[1] = NULL; /* end of args */
}
if (!filter->args[0]) {
return "Invalid cmd= parameter";