summaryrefslogtreecommitdiffstats
path: root/mod_auth_kerb-5.4-cachedir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mod_auth_kerb-5.4-cachedir.patch')
-rw-r--r--mod_auth_kerb-5.4-cachedir.patch7
1 files changed, 2 insertions, 5 deletions
diff --git a/mod_auth_kerb-5.4-cachedir.patch b/mod_auth_kerb-5.4-cachedir.patch
index 2c2a1fd..460db0c 100644
--- a/mod_auth_kerb-5.4-cachedir.patch
+++ b/mod_auth_kerb-5.4-cachedir.patch
@@ -4,15 +4,12 @@ switch the cache dir to be relative to runtimedir.
--- mod_auth_kerb-5.4/src/mod_auth_kerb.c.cachedir
+++ mod_auth_kerb-5.4/src/mod_auth_kerb.c
-@@ -891,7 +891,10 @@ create_krb5_ccache(krb5_context kcontext
+@@ -891,7 +891,7 @@ create_krb5_ccache(krb5_context kcontext
int ret;
krb5_ccache tmp_ccache = NULL;
- ccname = apr_psprintf(r->connection->pool, "FILE:%s/krb5cc_apache_XXXXXX", P_tmpdir);
-+ ccname = apr_pstrcat(r->connection->pool, "FILE:",
-+ ap_server_root_relative(r->pool,
-+ DEFAULT_REL_RUNTIMEDIR
-+ "/krb5cc_apache_XXXXXX"));
++ ccname = apr_pstrdup(r->connection->pool, "FILE:/run/user/apache/krb5cc_apache_XXXXXX");
fd = mkstemp(ccname + strlen("FILE:"));
if (fd < 0) {
log_rerror(APLOG_MARK, APLOG_ERR, 0, r,