summaryrefslogtreecommitdiffstats
path: root/network/suphp/patches/suphp-0.7.1-nosuid.diff
diff options
context:
space:
mode:
Diffstat (limited to 'network/suphp/patches/suphp-0.7.1-nosuid.diff')
-rw-r--r--network/suphp/patches/suphp-0.7.1-nosuid.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/network/suphp/patches/suphp-0.7.1-nosuid.diff b/network/suphp/patches/suphp-0.7.1-nosuid.diff
new file mode 100644
index 0000000000..7a9b35de4e
--- /dev/null
+++ b/network/suphp/patches/suphp-0.7.1-nosuid.diff
@@ -0,0 +1,18 @@
+diff -ur suphp-0.7.1.orig/src/Application.cpp suphp-0.7.1/src/Application.cpp
+--- suphp-0.7.1.orig/src/Application.cpp 2009-03-14 18:55:25.000000000 +0100
++++ suphp-0.7.1/src/Application.cpp 2009-04-05 13:03:10.000000000 +0200
+@@ -174,12 +174,13 @@
+ throw SecurityException("Calling user is not webserver user!",
+ __FILE__, __LINE__);
+ }
+-
++#if 0
+ if (!api.getEffectiveProcessUser().isSuperUser()) {
+ throw SecurityException(
+ "Do not have root privileges. Executable not set-uid root?",
+ __FILE__, __LINE__);
+ }
++#endif
+ }
+
+