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

Function set_server_root

server/core.c:3216–3232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3214}
3215
3216static const char *set_server_root(cmd_parms *cmd, void *dummy,
3217 const char *arg)
3218{
3219 const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
3220
3221 if (err != NULL) {
3222 return err;
3223 }
3224
3225 if ((apr_filepath_merge((char**)&ap_server_root, NULL, arg,
3226 APR_FILEPATH_TRUENAME, cmd->pool) != APR_SUCCESS)
3227 || !ap_is_directory(cmd->temp_pool, ap_server_root)) {
3228 return "ServerRoot must be a valid directory";
3229 }
3230
3231 return NULL;
3232}
3233
3234static const char *set_runtime_dir(cmd_parms *cmd, void *dummy, const char *arg)
3235{

Callers

nothing calls this directly

Calls 2

ap_check_cmd_contextFunction · 0.85
ap_is_directoryFunction · 0.85

Tested by

no test coverage detected