When the RewriteLock creates the global mutex on a system where file-based
locking is the default mechanism, the file is owned by root, and after
setuid/fork children will not have permissions to it. This should fix it.
Grisha
--- modules/mappers/mod_rewrite.c 19 Aug 2003 00:52:43 -0000 1.228
+++ modules/mappers/mod_rewrite.c 19 Aug 2003 14:55:32 -0000
@@ -2372,6 +2372,11 @@
"file %s", lockname);
return rc;
}
+ else {
+#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
+ chown(lockname, unixd_config.user_id, -1);
+#endif
+ }
#ifdef MOD_REWRITE_SET_MUTEX_PERMS
rc = unixd_set_global_mutex_perms(rewrite_mapr_lock_acquire);