aboutsummaryrefslogtreecommitdiff
path: root/net/squid/patches/002-glibc-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net/squid/patches/002-glibc-compile.patch')
-rw-r--r--net/squid/patches/002-glibc-compile.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/squid/patches/002-glibc-compile.patch b/net/squid/patches/002-glibc-compile.patch
new file mode 100644
index 000000000..d930bdf34
--- /dev/null
+++ b/net/squid/patches/002-glibc-compile.patch
@@ -0,0 +1,12 @@
+--- squid-4.0.21.orig/src/tools.cc
++++ squid-4.0.21/src/tools.cc
+@@ -581,7 +581,8 @@
+ }
+ #else
+
+- setuid(0);
++ if (setuid(0) < 0)
++ debugs(50, 1, "no_suid: setuid (0)");
+ #endif
+ #if HAVE_PRCTL && defined(PR_SET_DUMPABLE)
+ /* Set Linux DUMPABLE flag */