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

Function dav_fs_ensure_state_dir

modules/dav/fs/dbm.c:119–127  ·  view source on GitHub ↗

ensure that our state subdirectory is present */ ### does this belong here or in dav_fs_repos.c ?? */

Source from the content-addressed store, hash-verified

117/* ensure that our state subdirectory is present */
118/* ### does this belong here or in dav_fs_repos.c ?? */
119void dav_fs_ensure_state_dir(apr_pool_t * p, const char *dirname)
120{
121 const char *pathname = apr_pstrcat(p, dirname, "/" DAV_FS_STATE_DIR, NULL);
122
123 /* ### do we need to deal with the umask? */
124
125 /* just try to make it, ignoring any resulting errors */
126 (void) apr_dir_make(pathname, APR_OS_DEFAULT, p);
127}
128
129/* dav_dbm_open_direct: Opens a *dbm database specified by path.
130 * ro = boolean read-only flag.

Callers 2

dav_dbm_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected