diff options
author | Stef Walter <stefw@redhat.com> | 2016-01-10 12:00:11 +0100 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2016-01-10 12:00:11 +0100 |
commit | 70630fc3554d12f54803e0ea9c2726c719f9a8f1 (patch) | |
tree | e46fc7c8763be4a47679d4cadb9dcb001d0607d7 | |
parent | 4a30f52bb68ed053eeb1bb95bb93369b8b53494c (diff) |
Use new ap_unixd_set_global_mutex_perms function
On apache 2.4
-rw-r--r-- | module/mod_auth_singleid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/module/mod_auth_singleid.c b/module/mod_auth_singleid.c index 5c06c50..f715e4d 100644 --- a/module/mod_auth_singleid.c +++ b/module/mod_auth_singleid.c @@ -48,6 +48,7 @@ #include <ap_mpm.h> #include <mod_ssl.h> #include <mod_auth.h> +#include <unixd.h> #include <apr_base64.h> #include <apr_file_io.h> @@ -257,7 +258,11 @@ shared_initialize (apr_pool_t *p) #ifdef AP_NEED_SET_MUTEX_PERMS if (rc == APR_SUCCESS) { +#if AP_MODULE_MAGIC_AT_LEAST(20080403,1) + rc = ap_unixd_set_global_mutex_perms (shared_lock); +#else rc = unixd_set_global_mutex_perms (shared_lock); +#endif if (rc != APR_SUCCESS) ap_log_error (APLOG_MARK, APLOG_ERR, rc, NULL, "auth-singleid: Could not set permissions on lock. " |