aboutsummaryrefslogtreecommitdiff
path: root/net/squid/patches/002-glibc-compile.patch
blob: 24da83efc71cbbc0d369cfb5141412648d839754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/tools.cc
+++ b/src/tools.cc
@@ -582,7 +582,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 */