* This function gets called to create a per-directory configuration * record. This will be called for the "default" server environment, and for * each directory for which the parser finds any of our directives applicable. * If a directory doesn't have any of our directives involved (i.e., they * aren't in the .htaccess file, or a , , or related * block), this routine wil
| 545 | * structure. |
| 546 | */ |
| 547 | static void *x_create_dir_config(apr_pool_t *p, char *dirspec) |
| 548 | { |
| 549 | x_cfg *cfg; |
| 550 | char *dname = dirspec; |
| 551 | char *note; |
| 552 | |
| 553 | /* |
| 554 | * Allocate the space for our record from the pool supplied. |
| 555 | */ |
| 556 | cfg = (x_cfg *) apr_pcalloc(p, sizeof(x_cfg)); |
| 557 | /* |
| 558 | * Now fill in the defaults. If there are any `parent' configuration |
| 559 | * records, they'll get merged as part of a separate callback. |
| 560 | */ |
| 561 | cfg->local = 0; |
| 562 | cfg->congenital = 0; |
| 563 | cfg->cmode = CONFIG_MODE_DIRECTORY; |
| 564 | /* |
| 565 | * Finally, add our trace to the callback list. |
| 566 | */ |
| 567 | dname = (dname != NULL) ? dname : ""; |
| 568 | cfg->loc = apr_pstrcat(p, "DIR(", dname, ")", NULL); |
| 569 | note = apr_psprintf(p, "x_create_dir_config(p == %pp, dirspec == %s)", |
| 570 | (void*) p, dirspec); |
| 571 | trace_startup(p, NULL, cfg, note); |
| 572 | return (void *) cfg; |
| 573 | } |
| 574 | |
| 575 | /* |
| 576 | * This function gets called to merge two per-directory configuration |
nothing calls this directly
no test coverage detected