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

Function set_runtime_dir

server/core.c:3234–3250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3232}
3233
3234static const char *set_runtime_dir(cmd_parms *cmd, void *dummy, const char *arg)
3235{
3236 const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
3237
3238 if (err != NULL) {
3239 return err;
3240 }
3241
3242 if ((apr_filepath_merge((char**)&ap_runtime_dir, NULL,
3243 ap_server_root_relative(cmd->temp_pool, arg),
3244 APR_FILEPATH_TRUENAME, cmd->pool) != APR_SUCCESS)
3245 || !ap_is_directory(cmd->temp_pool, ap_runtime_dir)) {
3246 return "DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot";
3247 }
3248
3249 return NULL;
3250}
3251
3252static const char *set_timeout(cmd_parms *cmd, void *dummy, const char *arg)
3253{

Callers

nothing calls this directly

Calls 3

ap_check_cmd_contextFunction · 0.85
ap_server_root_relativeFunction · 0.85
ap_is_directoryFunction · 0.85

Tested by

no test coverage detected