summaryrefslogtreecommitdiffstatsabout
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gnutls_cache.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gnutls_cache.c b/src/gnutls_cache.c
index e8dcdc6..a0612f9 100644
--- a/src/gnutls_cache.c
+++ b/src/gnutls_cache.c
@@ -38,6 +38,10 @@
38#define MC_TAG_LEN sizeof(MC_TAG) 38#define MC_TAG_LEN sizeof(MC_TAG)
39#define STR_SESSION_LEN (GNUTLS_SESSION_ID_STRING_LEN + MC_TAG_LEN) 39#define STR_SESSION_LEN (GNUTLS_SESSION_ID_STRING_LEN + MC_TAG_LEN)
40 40
41#if MODULE_MAGIC_NUMBER_MAJOR < 20081201
42#define ap_unixd_config unixd_config
43#endif
44
41char *mgs_session_id2sz(unsigned char *id, int idlen, 45char *mgs_session_id2sz(unsigned char *id, int idlen,
42 char *str, int strsize) 46 char *str, int strsize)
43{ 47{
@@ -544,9 +548,9 @@ static int dbm_cache_post_config(apr_pool_t *p, server_rec *s,
544#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE) 548#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
545 /* Running as Root */ 549 /* Running as Root */
546 if (geteuid() == 0) { 550 if (geteuid() == 0) {
547 chown(path1, unixd_config.user_id, -1); 551 chown(path1, ap_unixd_config.user_id, -1);
548 if (path2 != NULL) { 552 if (path2 != NULL) {
549 chown(path2, unixd_config.user_id, -1); 553 chown(path2, ap_unixd_config.user_id, -1);
550 } 554 }
551 } 555 }
552#endif 556#endif