MCPcopy Create free account
hub / github.com/apache/httpd / execute_now

Function execute_now

server/config.c:1680–1714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1678}
1679
1680static const char *execute_now(char *cmd_line, const char *args,
1681 cmd_parms *parms,
1682 apr_pool_t *p, apr_pool_t *ptemp,
1683 ap_directive_t **sub_tree,
1684 ap_directive_t *parent)
1685{
1686 const command_rec *cmd;
1687 ap_mod_list *ml;
1688 char *dir = apr_pstrdup(parms->temp_pool, cmd_line);
1689
1690 ap_str_tolower(dir);
1691
1692 ml = apr_hash_get(ap_config_hash, dir, APR_HASH_KEY_STRING);
1693
1694 if (ml == NULL) {
1695 return apr_pstrcat(parms->pool, "Invalid command '",
1696 cmd_line,
1697 "', perhaps misspelled or defined by a module "
1698 "not included in the server configuration",
1699 NULL);
1700 }
1701
1702 for ( ; ml != NULL; ml = ml->next) {
1703 const char *retval;
1704 cmd = ml->cmd;
1705
1706 retval = invoke_cmd(cmd, parms, sub_tree, args);
1707
1708 if (retval != NULL) {
1709 return retval;
1710 }
1711 }
1712
1713 return NULL;
1714}
1715
1716/* This structure and the following functions are needed for the
1717 * table-based config file reading. They are passed to the

Callers 1

ap_build_config_subFunction · 0.85

Calls 2

ap_str_tolowerFunction · 0.85
invoke_cmdFunction · 0.85

Tested by

no test coverage detected