mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Wasted at least 20 minutes reparsing this code till I determined it's
correct. But make the sucker legible so noone else repeats the experience. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94635 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -515,11 +515,11 @@ static apr_status_t default_build_command(const char **cmd, const char ***argv,
|
||||
int numwords, x, idx;
|
||||
char *w;
|
||||
const char *args = r->args;
|
||||
const char *argv0;
|
||||
|
||||
if (replace_cmd) {
|
||||
/* Allow suexec's "/" check to succeed */
|
||||
if ((argv0 = strrchr(r->filename, '/')) != NULL)
|
||||
const char *argv0 = strrchr(r->filename, '/');
|
||||
if (argv0 != NULL)
|
||||
argv0++;
|
||||
else
|
||||
argv0 = r->filename;
|
||||
|
Reference in New Issue
Block a user