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

Function insp

modules/md/md_store_fs.c:794–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792} inspect_ctx;
793
794static 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
817static 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)

Callers

nothing calls this directly

Calls 3

md_log_perrorFunction · 0.85
md_util_path_mergeFunction · 0.85
fs_floadFunction · 0.85

Tested by

no test coverage detected