| 792 | } inspect_ctx; |
| 793 | |
| 794 | static apr_status_t insp(void *baton, apr_pool_t *p, apr_pool_t *ptemp, |
| 795 | const char *dir, const char *name, apr_filetype_e ftype) |
| 796 | { |
| 797 | inspect_ctx *ctx = baton; |
| 798 | apr_status_t rv; |
| 799 | void *value; |
| 800 | const char *fpath; |
| 801 | |
| 802 | (void)ftype; |
| 803 | md_log_perror(MD_LOG_MARK, MD_LOG_TRACE3, 0, ptemp, "inspecting value at: %s/%s", dir, name); |
| 804 | if (APR_SUCCESS == (rv = md_util_path_merge(&fpath, ptemp, dir, name, NULL))) { |
| 805 | rv = fs_fload(&value, ctx->s_fs, fpath, ctx->group, ctx->vtype, p, ptemp); |
| 806 | if (APR_SUCCESS == rv |
| 807 | && !ctx->inspect(ctx->baton, ctx->dirname, name, ctx->vtype, value, p)) { |
| 808 | return APR_EOF; |
| 809 | } |
| 810 | else if (APR_STATUS_IS_ENOENT(rv)) { |
| 811 | rv = APR_SUCCESS; |
| 812 | } |
| 813 | } |
| 814 | return rv; |
| 815 | } |
| 816 | |
| 817 | static apr_status_t insp_dir(void *baton, apr_pool_t *p, apr_pool_t *ptemp, |
| 818 | const char *dir, const char *name, apr_filetype_e ftype) |
nothing calls this directly
no test coverage detected