]> git.pld-linux.org Git - packages/apache-mod_python.git/blobdiff - apache-mod_python-right-mutex-perms.patch
- session handling fix (from mod_python CVS, found by Marcin Gajda)
[packages/apache-mod_python.git] / apache-mod_python-right-mutex-perms.patch
diff --git a/apache-mod_python-right-mutex-perms.patch b/apache-mod_python-right-mutex-perms.patch
new file mode 100644 (file)
index 0000000..c8e1cf9
--- /dev/null
@@ -0,0 +1,15 @@
+--- mod_python-3.1.2b.orig/src/mod_python.c    2003-10-22 21:57:04.000000000 +0200
++++ mod_python-3.1.2b/src/mod_python.c 2003-12-16 22:33:03.000000000 +0100
+@@ -419,7 +419,11 @@
+         }
+         else {
+ #if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
+-            chown(fname, unixd_config.user_id, -1);
++                      if( !geteuid() )
++                      {
++                  chown(fname, unixd_config.user_id, -1);
++                              unixd_set_global_mutex_perms(mutex[n]);
++                      }
+ #endif
+         }
+     }
This page took 0.026862 seconds and 4 git commands to generate.