because DEC 25 = OCT 31.''
-- Unknown */
#include "mod_ssl.h"
+#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
+#include "unixd.h"
+#endif
int ssl_mutex_init(server_rec *s, apr_pool_t *p)
{
SSLModConfigRec *mc = myModConfig(s);
+#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
+ apr_status_t rv;
+#endif
if (mc->nMutexMode == SSL_MUTEXMODE_NONE)
return TRUE;
mc->szMutexFile);
return FALSE;
}
+
+#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
+ rv = unixd_set_global_mutex_perms_lock(mc->pMutex);
+ if (rv != APR_SUCCESS) {
+ ssl_log(s, SSL_LOG_ERROR, "Could not set permissions on "
+ "ssl_mutex; check User and Group directives");
+ return FALSE;
+ }
+#endif
return TRUE;
}