diff options
author | Jim Jagielski <jim@apache.org> | 2012-03-12 16:45:03 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2012-03-12 16:45:03 +0100 |
commit | 5caa336986e7174ebf96ad1c4475cb3677841fb5 (patch) | |
tree | f7add118c0e2e45e1b7a4485533dde0395358de6 /modules/cache/mod_socache_dbm.c | |
parent | xform (diff) | |
download | apache2-5caa336986e7174ebf96ad1c4475cb3677841fb5.tar.xz apache2-5caa336986e7174ebf96ad1c4475cb3677841fb5.zip |
Move away from DEFAULT_REL_RUNTIMEDIR and use ap_runtime_dir_relative()
API
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1299718 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cache/mod_socache_dbm.c')
-rw-r--r-- | modules/cache/mod_socache_dbm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/cache/mod_socache_dbm.c b/modules/cache/mod_socache_dbm.c index 70fe28bf25..0d7c302baf 100644 --- a/modules/cache/mod_socache_dbm.c +++ b/modules/cache/mod_socache_dbm.c @@ -53,7 +53,7 @@ struct ap_socache_instance_t { */ #define DBM_FILE_MODE ( APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD ) -#define DEFAULT_DBM_PREFIX DEFAULT_REL_RUNTIMEDIR "/socache-dbm-" +#define DEFAULT_DBM_PREFIX "socache-dbm-" /* ### this should use apr_dbm_usednames. */ #if !defined(DBM_FILE_SUFFIX_DIR) && !defined(DBM_FILE_SUFFIX_PAG) @@ -127,7 +127,7 @@ static apr_status_t socache_dbm_init(ap_socache_instance_t *ctx, const char *path = apr_pstrcat(p, DEFAULT_DBM_PREFIX, namespace, NULL); - ctx->data_file = ap_server_root_relative(p, path); + ctx->data_file = ap_runtime_dir_relative(p, path); if (ctx->data_file == NULL) { ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, APLOGNO(00803) |