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

Function remove_nms_file

modules/md/md_store_fs.c:888–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888static apr_status_t remove_nms_file(void *baton, apr_pool_t *p, apr_pool_t *ptemp,
889 const char *dir, const char *name, apr_filetype_e ftype)
890{
891 inspect_ctx *ctx = baton;
892 const char *fname;
893 apr_finfo_t inf;
894 apr_status_t rv = APR_SUCCESS;
895
896 (void)p;
897 if (APR_DIR == ftype) goto leave;
898 if (APR_SUCCESS != (rv = md_util_path_merge(&fname, ptemp, dir, name, NULL))) goto leave;
899 if (APR_SUCCESS != (rv = apr_stat(&inf, fname, APR_FINFO_MTIME, ptemp))) goto leave;
900 if (inf.mtime >= ctx->ts) goto leave;
901
902 md_log_perror(MD_LOG_MARK, MD_LOG_TRACE3, 0, ptemp, "remove_nms file: %s/%s", dir, name);
903 rv = apr_file_remove(fname, ptemp);
904
905leave:
906 return rv;
907}
908
909static apr_status_t remove_nms_dir(void *baton, apr_pool_t *p, apr_pool_t *ptemp,
910 const char *dir, const char *name, apr_filetype_e ftype)

Callers

nothing calls this directly

Calls 2

md_util_path_mergeFunction · 0.85
md_log_perrorFunction · 0.85

Tested by

no test coverage detected