aboutsummaryrefslogtreecommitdiff
path: root/net/squid/patches/001-glibc-compile.patch
blob: fd11e85ce4a502ea77eae6678e59ed3b98ee4393 (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 @@ enter_suid(void)
     }
 #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 */